repo.or.cz
/
glibc
/
history.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[_LIBC] (ampm): Use tp->tm_hour not hour12.
[glibc/history.git]
/
stdio-common
/
scanf8.c
blob
731ca8be2c616f0225c30c3603977ce1804d2629
1
#include <stdio.h>
2
#include <string.h>
3
#include <stdlib.h>
4
5
int
6
main
(
int
argc
,
char
*
argv
[])
7
{
8
int
ret
;
9
char
buf
[
1024
] =
"Ooops"
;
10
11
ret
=
sscanf
(
"static char Term_bits[] = {"
,
"static char %s = {"
,
buf
);
12
printf
(
"ret: %d, name: %s
\n
"
,
ret
,
buf
);
13
if
(
ret
!=
1
||
strcmp
(
buf
,
"Term_bits[]"
) !=
0
)
14
abort
();
15
return
0
;
16
}