glibc/stdio-common/tst-wc-printf.c
Ulrich Drepper 366cff4d8f Update.
Reported by Dirk Laessig <d.laessig@tu-bs.de>.

	* stdio-common/tst-wc-printf.c: New file.  Test for %S and %C format.
	* stdio-common/Makefile (tests): Add tst-wc-printf.
1998-04-28 14:15:46 +00:00

23 lines
331 B
C

#define _GNU_SOURCE 1
#include <wchar.h>
#include <stdio.h>
#include <string.h>
#include <wctype.h>
int
main (void)
{
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", tmp[0]);
return 0;
}