home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Overload
/
ShartewareOverload.cdr
/
progm
/
flash-c1.zip
/
GETVOL.C
< prev
next >
Wrap
Text File
|
1990-02-11
|
380b
|
27 lines
#include <fpclib.h>
#include <string.h>
#include <memory.h>
void GetVolumneId( char *label );
void GetVolumneId( label )
char *label;
{
TFindRec findrec;
memset( label, '\0', 14 );
DosFindFirst( "C:\\*.*", 8, &findrec );
strcpy( label, ( CHAR * ) findrec.Name );
}
void main( void )
{
char label[14];
GetVolumneId( label );
}