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
Net interface definition
[glibc/history.git]
/
stdio-common
/
scanf6.c
blob
882e8571e3f2a71bd5a3757b5a53f1f7b060c7d7
1
#include <stdio.h>
2
#include <stdlib.h>
3
4
int
5
main
(
int
argc
,
char
*
argv
[])
6
{
7
int
n
= -
1
;
8
char
c
=
'!'
;
9
int
ret
;
10
11
ret
=
sscanf
(
"0x"
,
"%i%c"
, &
n
, &
c
);
12
printf
(
"ret: %d, n: %d, c: %c
\n
"
,
ret
,
n
,
c
);
13
if
(
ret
!=
2
||
n
!=
0
||
c
!=
'x'
)
14
abort
();
15
return
0
;
16
}