home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Club Amiga de Montreal - CAM
/
CAM_CD_1.iso
/
files
/
499.lha
/
InputDeviceToolKit
/
input.lzh
/
src
/
DeviceToolKits
/
Input
/
test_shared
/
test1.c
< prev
next >
Wrap
C/C++ Source or Header
|
1991-01-05
|
740b
|
44 lines
#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
}