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>_errputfilename()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 _errPutFileName()
 Set the filename
------------------------------------------------------------------------------
 C Prototype

     #include "error.api"
     ERRORP _errPutFileName(
                             ERRORP pError,
                             BYTEP  fpFileName
                           )

 Arguments

     pError is a pointer to the Error object that is to be set.

     fpFileName is a pointer to a null-terminated string containing the
     name of the file being accessed.

 Returns

     _errPutFileName() returns a pointer to the Error object (self).

 Description

     _errPutFileName() assigns a string to the error containing the name of
     the file being operated on, if any.  This value has no meaning on
     operations that do not involve files.

     Note:  The _fsExtOpen() function automatically sets filename to the
     correct value if an error occurs.  See The File System API Reference
     chapter in this guide and the Usage Example at the end of this chapter
     for more information.

 Examples

     .  This code fragment shows the setting of filename:

        #include "error.api"
           .
           .
           .
           _errPutFileName( pError, "Foo.txt" );
           uiErrCode = _errLaunch( pError );
           .
           .
           .

 Files:  Library is CLIPPER.LIB, header file is Error.api.


See Also: _errGetFileName()

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