JUNIT()

Fortran version:

    INTEGER FUNCTION JUNIT()

NO C version:

Summary:

Returns a POSIX-approved "safe" unit number not currently in use (providing that you always get Fortran unit numbers via JUNIT(); algorithm is to count down from 99 ). For Fortran-90 declarations and interface checking:
    USE M3UTILIO
    

See also:

GETDFILE()
GETEFILE()
PROMPTDFILE()
PROMPTFFILE()
PROMPTMFILE()

Preconditions:

Always get Fortran unit numbers via JUNIT().

Fortran Usage:

    ...
    INTEGER        JDEV
    INTEGER        JUNIT
    ...
    JDEV = JUNIT() )
    OPEN( FILE = 'foo', UNIT = JDEV, ...)
    ...

C Usage:

don't


Previous: INDEX1

Next: LBLANK

Up: Utility Routines

To: Models-3/EDSS I/O API: The Help Pages