Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Zortech C++ 3.0r4 - <b>cputype</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
cputype

Usage

   #include <dos.h>
   int cputype(void);

Description

   Reports the type of Intel CPU fitted.

Example 

   #include <stdio.h>
   #include <dos.h>
   #include <stdlib.h>

   int main()
   {
       char *type[5] =
           {"8088/8086","80186","80286","80386","80486"};


       printf("The cpu is an %s\n",type[cputype()]);
       return EXIT_SUCCESS;
   }

Return Value

   An integer indicating the type of CPU fitted:

       0   8088/8086/V20
       1   80186
       2   80286
       3   80386
       4   80486





Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson