repo.or.cz
/
AROS.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Build Envy24 driver.
[AROS.git]
/
test
/
clib
/
stdin3.c
blob
ca1e57a94f6d84076fb0cd2cbc19aef611b7feb7
1
#include <errno.h>
2
#include <stdio.h>
3
4
int
main
(
void
)
5
{
6
puts
(
"Type a line and it should be repeated"
);
7
8
char
c
;
9
for
(
c
=
getc
(
stdin
);
10
c
!=
'
\n
'
&&
c
!=
EOF
&&
errno
==
0
;
11
c
=
getc
(
stdin
)
12
)
13
putc
(
c
,
stdout
);
14
putc
(
'
\n
'
,
stdout
);
15
16
return
0
;
17
}