home *** CD-ROM | disk | FTP | other *** search
- #include <stdio.h>
-
- #include "DeviceToolKits/Input.h"
- #ifndef TESTPROTO
- #define NO_PRAGMAS 1
- #endif
- #include "DeviceToolKits/proto/Input.h"
- #include "DeviceToolKits/InputBase.h"
-
- DTInput_t Unit0;
-
- main(argc,argv)
- int argc;
- char *argv[];
- {
- long status;
-
- #ifdef TESTSHARED
- /* Open the Input library */
-
- DTInputOpen(DTINPUTREV);
- #endif
-
- /* Try to initialize unit 0 of the Input */
-
- if ((Unit0 = DTInputCreate(&status)) == NULL) {
- fprintf(stderr,"Error initializing unit 0 = %ld.\n",status);
- fflush(stderr);
- goto cleanup;
- }
-
- fprintf(stderr,"Unit0 = %lX\n",(long) Unit0);
- fflush(stderr);
-
- /* Free the stuff */
-
- cleanup:
- DTInputFree(Unit0);
- #ifdef TESTSHARED
- DTInputClose();
- #endif
- }
-
-