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
Fix tst-rfc3484* build failures from USE_NSCD move to config.h.
[glibc.git]
/
stdio-common
/
scanf5.c
blob
fb4acfabf1086646290f25ebaff274aee2981d16
1
#include <stdio.h>
2
#include <stdlib.h>
3
4
int
5
main
(
int
argc
,
char
*
argv
[])
6
{
7
int
a
,
b
;
8
9
a
=
b
= -
1
;
10
sscanf
(
"12ab"
,
"%dab%n"
, &
a
, &
b
);
11
printf
(
"%d, %d
\n
"
,
a
,
b
);
12
if
(
a
!=
12
||
b
!=
4
)
13
abort
();
14
15
a
=
b
= -
1
;
16
sscanf
(
"12ab100"
,
"%dab%n100"
, &
a
, &
b
);
17
printf
(
"%d, %d
\n
"
,
a
,
b
);
18
if
(
a
!=
12
||
b
!=
4
)
19
abort
();
20
return
0
;
21
}