Back to index

glibc  2.9
bug11.c
Go to the documentation of this file.
00001 #include <stdio.h>
00002 #include <string.h>
00003 
00004 int
00005 main (int argc, char *argv[])
00006 {
00007   int ret;
00008   char buf [1024] = "Ooops";
00009 
00010   ret = sscanf ("static char Term_bits[] = {", "static char %s = {", buf);
00011   printf ("ret: %d, name: %s\n", ret, buf);
00012 
00013   return strcmp (buf, "Term_bits[]") != 0 || ret != 1;
00014 }