Build Envy24 driver.
[AROS.git] / test / clib / stdin3.c
blobca1e57a94f6d84076fb0cd2cbc19aef611b7feb7
1 #include <errno.h>
2 #include <stdio.h>
4 int main(void)
6 puts("Type a line and it should be repeated");
8 char c;
9 for (c = getc(stdin);
10 c != '\n' && c != EOF && errno == 0;
11 c = getc(stdin)
13 putc(c, stdout);
14 putc('\n', stdout);
16 return 0;