unixio.hidd: Move to autogenerated interface includes
[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;