EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
nextun5.F
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file nextun5.F
1 
2  Function nextun5()
3 C Returns an unallocated FORTRAN i/o unit.
4  Logical ex
5 C
6  Do 10 n = 10, 300
7  INQUIRE (unit=n, opened=ex)
8  If (.NOT. ex) then
9  nextun5 = n
10  Return
11  Endif
12  10 Continue
13  stop ' There is no available I/O unit. '
14 C *************************
15  End