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
cleanup composer/compositing/composition -> compositor
[AROS.git]
/
test
/
clib
/
stdin1.c
blob
45ba163e337dfff1830cf9ae208b887a0d74eedd
1
#include <proto/dos.h>
2
#include <dos/stdio.h>
3
4
int
main
(
void
)
5
{
6
FPuts
(
Output
(),
"The command line arguments should be printed on next line
\n
"
);
7
8
UBYTE c
;
9
BPTR in
=
Input
(),
out
=
Output
();
10
for
(
c
=
FGetC
(
in
);
11
c
!=
'
\n
'
&&
c
!=
ENDSTREAMCH
;
12
c
=
FGetC
(
in
)
13
)
14
FPutC
(
out
,
c
);
15
FPutC
(
out
,
'
\n
'
);
16
17
return
0
;
18
}