Test for strftime_l and wcsftime_l.
[glibc.git] / stdio-common / scanf5.c
blobfb4acfabf1086646290f25ebaff274aee2981d16
1 #include <stdio.h>
2 #include <stdlib.h>
4 int
5 main(int argc, char *argv[])
7 int a, b;
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 ();
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;