home *** CD-ROM | disk | FTP | other *** search
- /* ************
- *************** COPROZ.C **********************************
- * ************ *
- * Autor: Ulrich Schmitz & toolbox 1990 *
- * Compiler: Turbo C++ *
- * Funktion: Demonstration der Abfrage auf einen *
- * Coprozessor. *
- * *
- **********************************************************/
-
- #include<dos.h>
- #include<float.h>
- #include<stdio.h>
-
- //---- Typendeklarationen ----------------------------------
- typedef double dword;
- typedef unsigned char byte;
- typedef unsigned int word;
-
- //---- Aufzählungstypen ------------------------------------
- enum boolean {FALSE, TRUE}; // FALSE = 0, TRUE = 1
-
- //---- Funktions-Prototypen --------------------------------
- extern byte test_co(void);
-
- //---- Hauptprogramm ---------------------------------------
- void main()
- {
- if (test_co() == TRUE)
- printf("\nCoprozessor vorhanden!\n");
- else if (test_co() == FALSE)
- printf("\nCoprozessor nicht vorhanden!\n");
- else
- printf("\nFehlerhafte Programmausführung!\n");
- }
- /*************** Ende COPROZ.C ****************************/