CLOSE(3F) UNIX Programmer's Manual CLOSE(3F) NAME close, flush - close or flush a file SYNTAX integer fileid call close(fileid) integer fileid call flush(fileid) DESCRIPTION _C_l_o_s_e causes any buffers for the file associated with _f_i_l_e_i_d to be emptied, and the file to be closed. Buffers allocated by the standard input/output system are freed. _C_l_o_s_e is performed automatically upon termination of a pro- gram. _F_l_u_s_h causes any buffered data for the named output _f_i_l_e_i_d to be written to that file. The file remains open. SEE ALSO open(3F) AUTHOR Bruce Julian, U.S. Geological Survey, Menlo Park, California Printed 5/17/83 1