tools/adflib: build only host variant which is used by Sam440 target
[AROS.git] / test / clib / stdin3.c
blob12e38a0fff02c657a0a7cef21715a851182e6154
1 /*
2 Copyright © 1995-2014, The AROS Development Team. All rights reserved.
3 $Id$
4 */
6 #include <errno.h>
7 #include <stdio.h>
9 int main(void)
11 puts("Type a line and it should be repeated");
13 char c;
14 for (c = getc(stdin);
15 c != '\n' && c != EOF && errno == 0;
16 c = getc(stdin)
18 putc(c, stdout);
19 putc('\n', stdout);
21 return 0;