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
Check for SYS/GL during library init. Reason is that
[AROS.git]
/
test
/
clib
/
stdin1.c
blob
5229b678c4ec2459bad045ffd533d8603c341f6b
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
(),
"The command line arguments should be printed on next line
\n
"
);
12
13
UBYTE c
;
14
BPTR in
=
Input
(),
out
=
Output
();
15
for
(
c
=
FGetC
(
in
);
16
c
!=
'
\n
'
&&
c
!=
ENDSTREAMCH
;
17
c
=
FGetC
(
in
)
18
)
19
FPutC
(
out
,
c
);
20
FPutC
(
out
,
'
\n
'
);
21
22
return
0
;
23
}