repo.or.cz
/
lcapit-junk-code.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Introduce examples dir
[lcapit-junk-code.git]
/
examples
/
C
/
scanf.c
blob
b3a3a149c5be1465e4d36afd3bc371eae502649b
1
#include <stdio.h>
2
3
int
main
(
void
)
4
{
5
char
line
[
32
];
6
7
/* Without this trick, scanf() will stop reading
8
* at the first space character */
9
scanf
(
"%[^
\n
]s"
,
line
);
10
printf
(
"-> %s
\n
"
,
line
);
11
return
0
;
12
}