Category : C Source Code
Archive   : JAZ_CLIB.ZIP
Filename : JZGETVOL.C
ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿
³jzgetvol ³
³Return the volume label for a specified drive. ³
³The drive argument should be 0 for A:,1 for B:, etc. ³
³The routine puts the volume name in the string fdest and returns a pointer ³
³to fdest. ³
³Synopsis: ³
³ #define DRIVE_A 0 ³
³ char wvol[13]; ³
³ jzgetvol(DRIVE_A,wvol); ³
³ printf("Your volume label is: ",*wvol ? wvol :
³ ³
³ (C) JazSoft Software by Jack A. Zucker (301) 794-5950 ³
ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ
*/
#include
#include
char *jzgetvol(fdrive,fdest)
char fdrive;
char *fdest;
{
TDIR wdir;
char fspec[65];
fspec[0] = fdrive+65; /* convert to uppercase letter */
fspec[1] = ':';
fspec[2] = 0;
strcat(fspec,"\\*.*");
#if DEBUG
printf("\n%s\n",fspec);
#endif
if (jzfndfst(fspec,8,&wdir)) {
*fdest = 0;
return(0);
}
strcpy(fdest,wdir.name);
return(fdest);
}
Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!
This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.
But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/