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
Tue Jun 4 22:03:02 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
[glibc.git]
/
stdio-common
/
scanf1.c
blob
4a5be880a42a820d6b01de15b4aeb55d53709362
1
#include <stdio.h>
2
#include <stdlib.h>
3
4
int
5
main
()
6
{
7
int
i
,
n
,
r
;
8
9
n
=
i
=
r
= -
1
;
10
r
=
sscanf
(
"1234:567"
,
"%d%n"
, &
i
, &
n
);
11
printf
(
"%d %d %d
\n
"
,
r
,
n
,
i
);
12
if
(
r
!=
1
||
i
!=
1234
||
n
!=
4
)
13
abort
();
14
return
0
;
15
}