- Partial definitions and inline functions for system control coprocessor, CP15.
[AROS.git] / test / waitforchar.c
blobbb6499698646e274e40e036d875ec51f0149b599
1 #include <proto/dos.h>
3 int main()
5 BPTR in = Input();
6 BPTR out = Output();
8 SetMode(in, 1);
10 Delay(25);
12 if (WaitForChar(in, 9000000))
13 FPuts(out, "WaitForChar: char arrived\n");
14 else
15 FPuts(out, "WaitForChar: timeout\n");
17 Flush(in);
18 Flush(out);
20 SetMode(in, 0);
22 return 0;