Back to index

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