home *** CD-ROM | disk | FTP | other *** search
/ Shareware Overload / ShartewareOverload.cdr / progm / flash-c1.zip / GETVOL.C < prev    next >
Text File  |  1990-02-11  |  380b  |  27 lines

  1. #include <fpclib.h>
  2. #include <string.h>
  3. #include <memory.h>
  4.  
  5.  
  6. void GetVolumneId( char *label );
  7.  
  8.  
  9. void GetVolumneId( label )
  10. char *label;
  11. {
  12.    TFindRec findrec;
  13.  
  14.    memset( label, '\0', 14 );
  15.    DosFindFirst( "C:\\*.*", 8, &findrec );
  16.    strcpy( label, ( CHAR * ) findrec.Name );
  17.  
  18. }
  19.  
  20.  
  21. void main( void )
  22. {
  23.    char label[14];
  24.  
  25.    GetVolumneId( label );
  26. }
  27.