[<<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.


This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson