mirror of
https://github.com/tobast/libunwind-eh_elf.git
synced 2024-11-13 20:08:12 +01:00
21 lines
423 B
C
21 lines
423 B
C
|
#include <wchar.h>
|
||
|
#include <stdio.h>
|
||
|
main ()
|
||
|
{
|
||
|
wchar_t *wstring =
|
||
|
L"Now is the time for all good men to come to the aid of their country";
|
||
|
int i;
|
||
|
int ret;
|
||
|
|
||
|
printf("wcslen(wstring) = %d\n", wcslen(wstring));
|
||
|
for (i = 0; i < wcslen (wstring); i++)
|
||
|
{
|
||
|
ret = printf ("%lc", wstring[i]);
|
||
|
if (ret != 1) {
|
||
|
printf("printf returned: %d\n", ret);
|
||
|
perror("Linux says");
|
||
|
}
|
||
|
}
|
||
|
printf("\n");
|
||
|
}
|