repo.or.cz
/
glibc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
(+cflags): Append to this instead of CFLAGS.
[glibc.git]
/
stdio-common
/
scanf6.c
blob
36055aa82e36bdcc4ef871d25a324323e74e8d86
1
#include <stdio.h>
2
#include <stdlib.h>
3
4
main
()
5
{
6
int
n
= -
1
;
7
char
c
=
'!'
;
8
int
ret
;
9
10
ret
=
sscanf
(
"0x"
,
"%i%c"
, &
n
, &
c
);
11
printf
(
"ret: %d, n: %d, c: %c
\n
"
,
ret
,
n
,
c
);
12
if
(
ret
!=
2
||
n
!=
0
||
c
!=
'x'
)
13
abort
();
14
return
0
;
15
}