home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C!T ROM 2
/
ctrom_ii_b.zip
/
ctrom_ii_b
/
PROGRAM
/
C
/
C-FDC
/
TSTATI.C
< prev
next >
Wrap
Text File
|
1985-05-27
|
533b
|
26 lines
#include <stdio.h>
#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);
else
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);
}