ubuntu-buildroot/output/build/glibc-2.36-81-g4f4d7a13edfd.../stdio-common/bug11.c

15 lines
294 B
C
Raw Permalink Normal View History

2024-04-01 15:19:46 +00:00
#include <stdio.h>
#include <string.h>
int
main (int argc, char *argv[])
{
int ret;
char buf [1024] = "Ooops";
ret = sscanf ("static char Term_bits[] = {", "static char %s = {", buf);
printf ("ret: %d, name: %s\n", ret, buf);
return strcmp (buf, "Term_bits[]") != 0 || ret != 1;
}