projects
/
platform
/
upstream
/
glibc.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Update.
[platform/upstream/glibc.git]
/
stdio-common
/
scanf6.c
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
}