| Description
This example shows an
example of the biosequip( ) function
this checks the equipment installed
in the system . In this case we check
and see if a co-processor is installed.
Code
#include <stdio.h>
#include <dos.h>
#include <stdlib.h>
#include <bios.h>
int main(void)
{
unsigned result;
clrscr();
result = biosequip();
if(result & 0x0002)
printf("Math co-processor installed\n");
else
printf("Math co-processor is
not installed.\n");
return 0;
}
Information
tested using Borland
Turbo C++ , Windows 95 and 98 .
|