repo.or.cz
/
C-Programming-Examples.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Added tutorial ex_2-5. Function returns location of char in string.
[C-Programming-Examples.git]
/
get_chars.c
blob
439754898d7419f09e19ef53699cae790da5d6e0
1
#include <stdio.h>
2
3
main
()
4
{
5
int
c
;
6
c
=
getchar
();
7
while
((
c
=
getchar
()) !=
EOF
){
8
putchar
(
c
);
9
}
10
}