about summary refs log tree commit diff
path: root/REORG.TODO/libio/tst-sscanf.c
diff options
context:
space:
mode:
Diffstat (limited to 'REORG.TODO/libio/tst-sscanf.c')
-rw-r--r--REORG.TODO/libio/tst-sscanf.c23
1 files changed, 23 insertions, 0 deletions
diff --git a/REORG.TODO/libio/tst-sscanf.c b/REORG.TODO/libio/tst-sscanf.c
new file mode 100644
index 0000000000..fb4be34b77
--- /dev/null
+++ b/REORG.TODO/libio/tst-sscanf.c
@@ -0,0 +1,23 @@
+#include <stdio.h>
+#include <wchar.h>
+
+#define WCS_LENGTH 256
+
+static int
+do_test (void)
+{
+  const char cnv[] ="%l[abc]";
+  const char str[] = "abbcXab";
+  wchar_t wcs[WCS_LENGTH];
+  int result = 0;
+
+  sscanf (str, cnv, wcs);
+  printf ("wcs = \"%ls\"\n", wcs);
+  fflush (stdout);
+  result = wcscmp (wcs, L"abbc") != 0;
+
+  return result;
+}
+
+#define TEST_FUNCTION do_test ()
+#include "../test-skeleton.c"