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
Change to generate file handling __need_FOPEN_MAX.
[glibc/history.git]
/
stdio-common
/
scanf11.c
blob
50ef26aded017bd623be2a0cc637c3783b019079
1
/* This test comes from ISO C Corrigendum 1. */
2
#include <stdio.h>
3
4
int
5
main
(
int
argc
,
char
*
argv
[])
6
{
7
int
d1
,
n1
,
n2
,
i
;
8
#define NOISE 1234567
9
int
d2
=
NOISE
;
10
11
i
=
sscanf
(
"123"
,
"%d%n%n%d"
, &
d1
, &
n1
, &
n2
, &
d2
);
12
13
return
i
!=
3
||
d1
!=
123
||
n1
!=
3
||
n2
!=
3
||
d2
!=
NOISE
;
14
}