]>
Commit | Line | Data |
---|---|---|
c7509e31 UD |
1 | #include <stdio.h> |
2 | #include <wchar.h> | |
3 | ||
4 | #define WCS_LENGTH 256 | |
5 | ||
29955b5d AS |
6 | static int |
7 | do_test (void) | |
c7509e31 UD |
8 | { |
9 | const char cnv[] ="%l[abc]"; | |
10 | const char str[] = "abbcXab"; | |
11 | wchar_t wcs[WCS_LENGTH]; | |
12 | int result = 0; | |
13 | ||
14 | sscanf (str, cnv, wcs); | |
15 | printf ("wcs = \"%ls\"\n", wcs); | |
16 | fflush (stdout); | |
17 | result = wcscmp (wcs, L"abbc") != 0; | |
18 | ||
19 | return result; | |
20 | } | |
29955b5d AS |
21 | |
22 | #define TEST_FUNCTION do_test () | |
23 | #include "../test-skeleton.c" |