Correction.
[glibc.git] / stdio-common / scanf8.c
blob316f45df01256afbae51f76250befaad4aa41bd0
1 #include <stdio.h>
2 #include <string.h>
3 #include <stdlib.h>
5 main ()
7 int ret;
8 char buf [1024] = "Ooops";
10 ret = sscanf ("static char Term_bits[] = {", "static char %s = {", buf);
11 printf ("ret: %d, name: %s\n", ret, buf);
12 if (ret != 1 || strcmp (buf, "Term_bits[]") != 0)
13 abort ();
14 return 0;