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
correctly split the ipi into source/msg components.
[AROS.git]
/
test
/
clib
/
stdin2.c
blob
1006c2d73211012d90138f5d8ab85a17446021f7
1
/*
2
Copyright © 1995-2014, The AROS Development Team. All rights reserved.
3
$Id$
4
*/
5
6
#include <proto/dos.h>
7
#include <dos/stdio.h>
8
9
int
main
(
void
)
10
{
11
FPuts
(
Output
(),
"Type a line and it should be repeated
\n
"
);
12
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
)
19
)
20
FPutC
(
out
,
c
);
21
FPutC
(
out
,
'
\n
'
);
22
23
return
0
;
24
}