tools/adflib: build only host variant which is used by Sam440 target
[AROS.git] / test / clib / stdin2.c
blob1006c2d73211012d90138f5d8ab85a17446021f7
1 /*
2 Copyright © 1995-2014, The AROS Development Team. All rights reserved.
3 $Id$
4 */
6 #include <proto/dos.h>
7 #include <dos/stdio.h>
9 int main(void)
11 FPuts(Output(), "Type a line and it should be repeated\n");
13 UBYTE c;
14 BPTR in = Input(), out = Output();
15 Flush(in);
16 for (c = FGetC(in);
17 c != '\n' && c != ENDSTREAMCH;
18 c = FGetC(in)
20 FPutC(out, c);
21 FPutC(out, '\n');
23 return 0;