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
Better A3000/A4000 ReadGayle() update, save and restore possible Gary timeout register.
[AROS.git]
/
test
/
clib
/
stdin2.c
blob
2b514785835133eff3b0f2739f25cd7fc25bedc7
1
#include <proto/dos.h>
2
#include <dos/stdio.h>
3
4
int
main
(
void
)
5
{
6
FPuts
(
Output
(),
"Type a line and it should be repeated
\n
"
);
7
8
UBYTE c
;
9
BPTR in
=
Input
(),
out
=
Output
();
10
Flush
(
in
);
11
for
(
c
=
FGetC
(
in
);
12
c
!=
'
\n
'
&&
c
!=
ENDSTREAMCH
;
13
c
=
FGetC
(
in
)
14
)
15
FPutC
(
out
,
c
);
16
FPutC
(
out
,
'
\n
'
);
17
18
return
0
;
19
}