Category : HD Utilities
Archive   : SDETECT.ZIP
Filename : TEST.C

 
Output of file : TEST.C contained in archive : SDETECT.ZIP
#include
#include
#include "sd_types.h"

// prototypes

extern "C" int detect_stacker(void);
extern "C" int detect_stacker_drive(int driveno);
int detect_stacker_volume2(int driveno);
int stacker_dd_pointer(int driveno);



main(
int argc,
char *argv[]
)
{

uchar driveNumber;

if (argc <= 1)

printf("Please enter a drive letter.\n");

else
{
driveNumber = toupper(*argv[1]) - 'A';

if ((driveNumber < 0) || (driveNumber > 25))

printf("%c is not a valid drive letter.\n", toupper(*argv[1]));

if ((detect_stacker() != 0)
&& (detect_stacker_drive(driveNumber) != 0))

printf("Drive %c is a Stacker volume",'A'+driveNumber);

else
printf("Drive %c is a not a Stacker volume",'A'+driveNumber);
}
}



  3 Responses to “Category : HD Utilities
Archive   : SDETECT.ZIP
Filename : TEST.C

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. 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/