Forgotten changes that should have been part of the r45368 64-bit fix.
[AROS.git] / test / dos / inhibit.c
blobf856f59bb3088f495b60a31ef8d6bcb91d24d614
1 #include <dos/dos.h>
2 #include <proto/dos.h>
4 #include <stdio.h>
5 #include <string.h>
7 int main(int argc, char **argv)
9 LONG ret;
10 LONG arg;
12 if (argc < 3)
14 printf("Usage: %s <device> [ON|OFF]\n", argv[0]);
15 return 0;
18 arg = !stricmp(argv[2], "ON");
19 ret = Inhibit(argv[1], arg);
21 printf("Inhibit(%d) returned %d\n", (int)arg, (int)ret);
23 return 0;