flush(3) CLIX flush(3)
NAME
flush - Flushes the output for the specified FORTRAN logical unit
LIBRARY
FORTRAN library (libap_f.a)
SYNOPSIS
integer i, lun
i = flush (lun)
DESCRIPTION
The flush command flushes the output for the specified FORTRAN logical
unit. The FORTRAN library utilizes the buffered I/O functions fopen(),
fread(), fwrite(), and so on, for logical unit I/O. Thus, after a FORTRAN
write statement is executed, some or all data may reside in a buffer and
will not necessarily have been written to the device or file associated
with the logical unit. Data will always be flushed when the program exits
or a logical unit is closed. However, when a user requires data to be
flushed to a device or file immediately, flush() is provided.
RETURN VALUES
Upon successful completion, the FORTRAN logical unit number is returned.
Otherwise, a value of -1 is returned.
RELATED INFORMATION
Functions: fnum(3), f77initio(3), fopen(3), fclose(3)
2/94 - Intergraph Corporation 1