GIT.Harvie.CZ
/
mirrors
/
Programs.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
c/sampler renamed to Ghetto-SoundSystem ;-)
[mirrors/Programs.git]
/
bash
/
nano-crypt
/
tee-lazy.c
1
#include <stdio.h>
2
3
int
main
(
int
argc
,
char
*
argv
[])
4
{
5
if
(
argc
<
2
) {
6
printf
(
"Usage: %s output-file < input-file
\n
"
,
argv
[
0
]);
7
}
8
9
FILE
*
outfp
;
10
outfp
=
0
;
11
unsigned int
c
;
12
while
( (
c
=
getchar
()) !=
EOF
) {
13
if
(!
outfp
)
outfp
=
fopen
(
argv
[
1
],
"wb"
);
14
putc
(
c
,
outfp
);
15
}
16
fclose
(
outfp
);
17
return
0
;
18
}
This page took
0.637924 seconds
and
4
git commands to generate.