Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- CA-Clipper 5.3 . Technical Reference - <b>_fsclose()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 _fsClose()
 Close a file
------------------------------------------------------------------------------
 C Prototype

     #include "filesys.api"
     void _fsClose(
                       FHANDLE hFileHandle
                     )

 Arguments

     hFileHandle is a valid DOS reference to the file to be closed.

 Returns

     _fsClose() has no return value.

 Description

     This function closes the file indicated by hFileHandle.  It is
     equivalent to the CA-Clipper function FCLOSE().  Use the _fsError()
     function to determine if the file close operation resulted in an error.

 Examples

     .  The following code fragment illustrates the use of _fsClose().
        Note that error handling should be performed at each step.  Refer to
        the "Error System API Reference" chapter of this guide for details on
        communicating with the CA-Clipper Error system:

        #include "filesys.api"

        FHANDLE hFile;

        hFile = _fsOpen( "Foo", FO_READWRITE | FO_EXCLUSIVE );

        if (! _fsError() )
        {
           .
           .
           .
           _fsClose( hFile );
        }

 Files  Library is CLIPPER.LIB, header file is Filesys.api.


See Also: _fsCreate() _fsError() _fsOpen() _fsRead() _fsSeek()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson