Back to index

glibc  2.9
Defines | Functions
tst-wc-printf.c File Reference
#include <wchar.h>
#include <stdio.h>
#include <string.h>
#include <wctype.h>

Go to the source code of this file.


#define _GNU_SOURCE   1


int main (void)

Define Documentation

#define _GNU_SOURCE   1

Definition at line 1 of file tst-wc-printf.c.

Function Documentation

int main ( void  )

Definition at line 8 of file tst-wc-printf.c.

  wchar_t tmp[3];
  tmp[0] = '8';
  tmp[1] = '1';
  tmp[2] = 0;

  printf ("Test for wide character output with printf\n");

  printf ("with %%S: %S\n", tmp);

  printf ("with %%C: %C\n", (wint_t) tmp[0]);

  return 0;

Here is the call graph for this function: