compiler/pthread: make sure no pthread gets id equal to default value of type
[AROS.git] / test / dos / inhibit.c
blobb1db22f641602fe7ce5aeca73a5dce6ca91c3356
1 /*
2 Copyright © 1995-2014, The AROS Development Team. All rights reserved.
3 $Id$
4 */
6 #include <dos/dos.h>
7 #include <proto/dos.h>
9 #include <stdio.h>
10 #include <string.h>
12 int main(int argc, char **argv)
14 LONG ret;
15 LONG arg;
17 if (argc < 3)
19 printf("Usage: %s <device> [ON|OFF]\n", argv[0]);
20 return 0;
23 arg = !stricmp(argv[2], "ON");
24 ret = Inhibit(argv[1], arg);
26 printf("Inhibit(%d) returned %d\n", (int)arg, (int)ret);
28 return 0;