Wrapper around wcstod.c for use as wcstod_l.
[glibc/history.git] / stdio-common / scanf10.c
blobf8961378ef1ae460a9dc53cd22363ad33f743f5e
1 #include <stdio.h>
2 #include <string.h>
4 int
5 main (int argc, char *argv[])
7 const char teststring[] = "<tag `word'>";
8 int retc, a, b;
10 retc = sscanf (teststring, "<%*s `%n%*s%n'>", &a, &b);
12 printf ("retc=%d a=%d b=%d\n", retc, a, b);
14 return retc == -1 && a == 6 && b == 12 ? 0 : 1;