_close

Close a file.

int _close (int handle);

int close (int handle);

Required Header
<io.h>

Return Value

Each of these functions returns 0 if the operation was successful. -1 indicates an error.

Parameters

handle

  The low level I/O handle to the open file

Remarks

The _close function closes the file specified by handle. Since all I/O in the JCC library is buffered, _close may return an error when completing the final records at the end of the file if the file has no space left.

Low Level I/O

See Also    _dup, fclose, _open, __setstow