FCLOS

NAME

fclos - Releases the connection previously establish by fnom.

USAGE

ier = fclos(iun) (FORTRAN)
ier = c_fclos(iun) (C)
(click here for an example of use).

DESCRIPTION

Releases the connection between an external file and a FORTRAN unit number (previously establish by fnom ) with a possible deletion of the file if it had the 'SCRATCH' attribute. This operation makes possible a reconnection of the same unit with another external file name. Upon successful completion, fclos returns a value of 0. Upon failure a negative number will be returned.

ARGUMENT

iun

FORTRAN unit number to be disconnected.

AUTHOR

Mario Lépine - RPN

SEE ALSO

( fnom)