Back to index

glibc  2.9
bug21.c
Go to the documentation of this file.
00001 #include <stdio.h>
00002 
00003 static int
00004 do_test (void)
00005 {
00006   static const char buf[] = " ";
00007   char *str;
00008 
00009   int r = sscanf (buf, "%as", &str);
00010   printf ("%d %p\n", r, str);
00011 
00012   return r != -1 || str != NULL;
00013 }
00014 
00015 #define TEST_FUNCTION do_test ()
00016 #include "../test-skeleton.c"