repo.or.cz
/
AROS.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Register nameservers dynamically instead of writing them to disk. It is
[AROS.git]
/
test
/
dos
/
inhibit.c
blob
f856f59bb3088f495b60a31ef8d6bcb91d24d614
1
#include <dos/dos.h>
2
#include <proto/dos.h>
3
4
#include <stdio.h>
5
#include <string.h>
6
7
int
main
(
int
argc
,
char
**
argv
)
8
{
9
LONG ret
;
10
LONG arg
;
11
12
if
(
argc
<
3
)
13
{
14
printf
(
"Usage: %s <device> [ON|OFF]
\n
"
,
argv
[
0
]);
15
return
0
;
16
}
17
18
arg
= !
stricmp
(
argv
[
2
],
"ON"
);
19
ret
=
Inhibit
(
argv
[
1
],
arg
);
20
21
printf
(
"Inhibit(%d) returned %d
\n
"
, (
int
)
arg
, (
int
)
ret
);
22
23
return
0
;
24
}