source: vendor/glibc-tests/glibc/libio/tst-sscanf.c

Last change on this file was 2036, checked in by bird, 20 years ago

Initial revision

  • Property cvs2svn:cvs-rev set to 1.1
  • Property svn:eol-style set to native
  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 329 bytes
Line 
1#include <stdio.h>
2#include <wchar.h>
3
4#define WCS_LENGTH 256
5
6int
7main (void)
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}
Note: See TracBrowser for help on using the repository browser.