Back to index

glibc  2.9
Defines | Functions
tst-sscanf.c File Reference
#include <stdio.h>
#include <wchar.h>

Go to the source code of this file.


#define WCS_LENGTH   256


int main (void)

Define Documentation

#define WCS_LENGTH   256

Definition at line 4 of file tst-sscanf.c.

Function Documentation

int main ( void  )

Definition at line 7 of file tst-sscanf.c.

  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;

Here is the call graph for this function: