FNUM(3f)

DESCRIPTION
FNUM(UNIT) returns the POSIX file descriptor number corresponding to the open Fortran I/O unit UNIT.

STANDARD
GNU extension

CLASS
Function

SYNTAX
RESULT = FNUM(UNIT)

ARGUMENTS

UNIT The type shall be INTEGER.

RETURN VALUE
The return value is of type INTEGER

EXAMPLE
          program test_fnum
            integer :: i
            open (unit=10, status = "scratch")
            i = fnum(10)
            print *, i
            close (10)
          end program test_fnum

AUTHOR

This information was taken from the GFortran documentation (https://gcc.gnu.org/onlinedocs/gcc-5.3.0/gfortran/) and converted to a manpage by AstroFloyd (http://astrofloyd.org).