Terminates access to a file.
Syntax
int _FClose(FCHAN chan)
FCHAN chan; /* File channel of file to close. */
Remarks
Any buffers that have been modified while the buffer is open are automatically flushed to disk. If the file has the TEMPORARY attribute, FClose( ) deletes the file. _FClose( ) returns 0 if the file is closed successfully, or – 1 if the file isn't closed successfully.
For more information on how to create an API library and integrate it with Visual FoxPro, see Chapter 28, Accessing the Visual FoxPro API, in the Programmer's Guide.