Copyright clean-up (part 1):
[AROS.git] / test / waitforchar.c
blob5088d1dbd47aa22e9b1c0b9e980b17b00c2546c7
1 /*
2 Copyright © 1995-2014, The AROS Development Team. All rights reserved.
3 $Id$
4 */
6 #include <proto/dos.h>
8 int main()
10 BPTR in = Input();
11 BPTR out = Output();
13 SetMode(in, 1);
15 Delay(25);
17 if (WaitForChar(in, 9000000))
18 FPuts(out, "WaitForChar: char arrived\n");
19 else
20 FPuts(out, "WaitForChar: timeout\n");
22 Flush(in);
23 Flush(out);
25 SetMode(in, 0);
27 return 0;