From 2114e10acb7494eddd5417c27cd52199f4fe9517 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Sat, 23 Dec 1995 01:14:10 +0000 Subject: Fri Dec 22 00:38:00 1995 H.J. Lu * 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 * stdio-common/vfscanf.c: Correctly handle white space skipping. * stdio-common/Makefile (tests): Add bug11. * stdio-common/bug11.c: New file. --- stdio-common/bug11.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 stdio-common/bug11.c (limited to 'stdio-common/bug11.c') diff --git a/stdio-common/bug11.c b/stdio-common/bug11.c new file mode 100644 index 0000000..1f5739c --- /dev/null +++ b/stdio-common/bug11.c @@ -0,0 +1,13 @@ +#include +#include + +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; +} -- cgit v1.1