Blame stdio-common/tst-wc-printf.c
|
Packit Service |
82fcde |
#define _GNU_SOURCE 1
|
|
Packit Service |
82fcde |
#include <wchar.h>
|
|
Packit Service |
82fcde |
#include <stdio.h>
|
|
Packit Service |
82fcde |
#include <string.h>
|
|
Packit Service |
82fcde |
#include <wctype.h>
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
static int
|
|
Packit Service |
82fcde |
do_test (void)
|
|
Packit Service |
82fcde |
{
|
|
Packit Service |
82fcde |
wchar_t tmp[3];
|
|
Packit Service |
82fcde |
tmp[0] = '8';
|
|
Packit Service |
82fcde |
tmp[1] = '1';
|
|
Packit Service |
82fcde |
tmp[2] = 0;
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
printf ("Test for wide character output with printf\n");
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
printf ("with %%S: %S\n", tmp);
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
printf ("with %%C: %C\n", (wint_t) tmp[0]);
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
return 0;
|
|
Packit Service |
82fcde |
}
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
#define TEST_FUNCTION do_test ()
|
|
Packit Service |
82fcde |
#include "../test-skeleton.c"
|