home *** CD-ROM | disk | FTP | other *** search
/ Black Box 4 / BlackBox.cdr / progasm / cputype0.arj / TEST.C < prev   
Encoding:
C/C++ Source or Header  |  1990-12-19  |  192 b   |  12 lines

  1. #include <stdio.h>
  2.  
  3. char *CPU_TYPE[] = { "8086/88", "80186", "80286", "80386" };
  4.  
  5. int main(void)
  6. {
  7.     extern int cputype();
  8.  
  9.     printf("CPU is %s\n", CPU_TYPE[cputype()]);
  10.     return 0;
  11. }
  12.