Category : C Source Code
Archive   : C-FDC.ZIP
Filename : TSTATI.C

Output of file : TSTATI.C contained in archive : C-FDC.ZIP
#include "fdc.h"

main(argc, argv)
int argc;
char **argv;
extern int errno;
int drive;
struct ati *sp, *getati();
if(argc == 2)
drive = tolower(*argv[1]) - ('a' - 1);
drive = 0;
printf("getting information about drive #%d\n", drive);

sp = getati(drive);
printf("media descriptor = %x\n", sp->media_type & 0xff );
printf("sector/allocation unit = %d\n", sp->sector_au);
printf("allocation units = %u\n", sp->au);
printf("sector size = %d\n", sp->sector_type);


  3 Responses to “Category : C Source Code
Archive   : C-FDC.ZIP
Filename : TSTATI.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: