mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-30 00:31:08 +00:00
2114e10acb
* stdio-common/vfscanf.c: Correctly handle white space skipping. * stdio-common/Makefile (tests): Add bug11. * stdio-common/bug11.c: New file. Fri Dec 22 00:38:00 1995 H.J. Lu <hjl@nynexst.com> * stdio-common/vfscanf.c: Correctly handle white space skipping. * stdio-common/Makefile (tests): Add bug11. * stdio-common/bug11.c: New file.
14 lines
268 B
C
14 lines
268 B
C
#include <stdio.h>
|
|
#include <string.h>
|
|
|
|
main ()
|
|
{
|
|
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;
|
|
}
|