home *** CD-ROM | disk | FTP | other *** search
-
- /* test.c: Tests the cputype() function. Prints message
- * telling the results.
- * Copyright (C) 1990 Nicholas Wilt
- */
-
- #include <stdio.h>
-
- main()
- {
- printf("cputype detects an ");
- switch (cputype()) {
- case 0:
- printf("8086. I sympathize.\n");
- break;
- case 1:
- printf("80286. You\'re getting there!\n");
- break;
- case 2:
- printf("80386. You\'re cookin\'!");
- break;
- }
- }