[<<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()
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson