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>_fsisdrv()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 _fsIsDrv()
 Check if a disk drive is available
------------------------------------------------------------------------------
 C Prototype

     #include "filesys.api"
     USHORT _fsIsDrv(
                       BYTE nDrive
                     )

 Arguments

     nDrive is the number of the disk drive to check.

 Returns

     _fsIsDrv() returns zero if successful; otherwise, FS_ERROR.

 Description

     This function checks if a disk drive is available.  It is equivalent to
     the CA-Clipper function ISDISK().

 Examples

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

        #include "filesys.api"
        .
        .
        .
        BYTEP AllDrives()
        {
           BYTE i, nDrives, cDrives[27];

           nDrives = 0;
           for ( i = 0, i < 26, i++)
           {
              if(! _fsIsDrv( i ) )
                 cDrives[nDrives++] = 'a' + i;
           }
           cDrives[nDrives++] = '\0';
           return( cDrives );
        }

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


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