repo.or.cz
/
4chanprog.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
+ coreutils from rechan
[4chanprog.git]
/
coreutils
/
yes.c
blob
a3d44290d422cb6c769bbc683906d2a89f8190c5
1
#include <stdio.h>
2
3
int
main
(
int
argc
,
char
*
argv
[])
4
{
5
const char
*
str
=
argc
>
1
?
argv
[
1
] :
"y"
;
6
for
(;;)
7
if
(
puts
(
str
) ==
EOF
)
8
{
9
perror
(
"yes"
);
10
return
1
;
11
}
12
}