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>_fsmkdir()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 _fsMkDir()
 Create a directory
------------------------------------------------------------------------------
 C Prototype

     #include "filesys.api"
     BOOL _fsMkDir(
                       BYTEP fpDirName
                     )

 Arguments

     fpDirName is the name of the directory to create, including an
     optional drive.  If you do not specify a drive, the current one is used.

 Returns

     _fsMkDir() returns TRUE if successful; otherwise, FALSE.

 Description

     This function creates a specified directory.  You must have sufficient
     rights to create a directory.  To create nested subdirectories, you must
     create each subdirectory separately, starting from the top-level
     directory that you want to create.  This function is equivalent to the
     CA-Clipper function DIRMAKE().  If an error occurs, _fsError() will
     return the number of the error.

 Examples

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

        #include "filesys.api"
        .
        .
        .
        if (! _fsMkDir( "c:\test" ) )
        {
           // Report the error condition using _fsError()
        }

     .  You may also use something like this:

        _fsMkDir( "..\test" )

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


See Also: _fsError()

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