update from main archive 961009
[glibc.git] / stdio-common / scanf6.c
blob882e8571e3f2a71bd5a3757b5a53f1f7b060c7d7
1 #include <stdio.h>
2 #include <stdlib.h>
4 int
5 main (int argc, char *argv[])
7 int n = -1;
8 char c = '!';
9 int ret;
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;