[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 _fsCommit()
 Flush a buffer to disk
------------------------------------------------------------------------------
 C Prototype

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

 Arguments

     hFileHandle is a valid DOS reference to the file to be committed to
     disk.

 Returns

     _fsCommit() has no return value.

 Description

     This function flushes the file buffer of the file whose handle is
     specified by hFileHandle.  It is equivalent to the CA-Clipper function
     DBCOMMIT().

 Examples

     .  The following code fragment illustrates the use of
        _fsCommit():

        #include "filesys.api"

        FHANDLE hFile;

        // Open a file for reading and writing
        hFile = _fsOpen( "Foo", FO_READWRITE | FO_EXCLUSIVE );

        if (! _fsError() )
        {
           .
           .
           .
           _fsCommit( hFile );  // Flush buffers to disk
           .
           .
           .
        }

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


See Also: _fsClose()
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson