Guardian Procedure Calls Reference Manual (G06.25+)
Guardian Procedure Calls (C)
Guardian Procedure Calls Reference Manual—522629-013
3-84
CLOSEEDIT_ Procedure
CLOSEEDIT_ Procedure
Summary
Syntax for C Programmers
Syntax for TAL Programmers
Parameters
Related Programming Manual
Summary
The CLOSEEDIT_ procedure closes a specified file that was opened by the
OPENEDIT or OPENEDIT_ procedure. The procedure writes to disk any file updates
that are still buffered, optionally closes the file through the file system, and finally
deallocates all data blocks in the EDIT file segment (EFS) that are associated with the
file.
CLOSEEDIT_ is an IOEdit procedure and can be used only with files that have been
opened by OPENEDIT or OPENEDIT_.
Syntax for C Programmers
Syntax for TAL Programmers
Parameters
error returned value
INT
returns a file-system error number indicating the outcome of the operation.
filenum input
INT:value
is the number that identifies the open file to be closed.
keep-filenum input
INT:value
#include <cextdecs(CLOSEEDIT_ )>
short CLOSEEDIT_ ( short filenum
,[ short keep-filenum ] );
error := CLOSEEDIT_ ( filenum ! i
,[ keep-filenum ] ); ! i