/* Express System
Copyright (c) Express Software 1997.
All Rights Reserved.
Version 1.0
Created by: Joseph Cosentino.
*/
// I N C L U D E S //////////////////////////////////////////////////////////
#include
#include
#include
#include
#include
#include
// D E F I N E S ////////////////////////////////////////////////////////////
#define LPT1 0
// P R O T O T Y P E S //////////////////////////////////////////////////////
int classify_args(int narg, char *rawargs[], char *fileargs[], char *optargs[]);
// F U N C T I O N S ////////////////////////////////////////////////////////
int classify_args(int narg, char *rawargs[], char *fileargs[], char *optargs[])
{
int index, jndex, kndex;
char *argptr;
for (index=0,jndex=0,kndex=0;index> 8);
// Get current drive.
_dos_getdrive(&drive);
printf("Current drive:\t\t%c:\n", 'A' + drive - 1);
// Set drive to current drive in order to get number of drives.
_dos_setdrive(drive, &drivecount);
_dos_getdiskfree(drive, &drvinfo);
printf("Disk space free:\t%ld\n", (long)drvinfo.avail_clusters * drvinfo.sectors_per_cluster * drvinfo.bytes_per_sector);
printf("Memory:\t\t\t%uK\n", _bios_memsize);
equip.u = _bios_equiplist();
printf("Coprocessor:\t\t%s\n", equip.bits.coprocessor ? i : ni);
printf("Game adapter:\t\t%s\n", equip.bits.game ? y : n);
printf("Serial ports:\t\t%d\n", equip.bits.comports);
printf("Number of printers:\t%d\n", equip.bits.printers);
// Fail if any error bit is on, or if either operation bit is off.
pstatus = _bios_printer( _PRINTER_STATUS, LPT1, 0 );
if((pstatus & 0x29) || !(pstatus & 0x80) || !(pstatus & 0x10))
pstatus=0;
else
pstatus=1;
printf("Printer is:\t\t%s\n", pstatus ? On : Off );
printf("Modem:\t\t\t%s\n", equip.bits.modem ? ext : inte);
} // end else.
} // end main.
               (
geocities.com/xsaintx69)