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.2 . Technical Reference - <b>_fscommit()</b> http://www.X-Hacker.org [<<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()

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