4381bb2a22
When the execution reaches the end of the main functions, they implicitly return a successful status.
19 lines
358 B
C
19 lines
358 B
C
#include <string.h>
|
|
#include <stdio.h>
|
|
#include <wchar.h>
|
|
#include <stdlib.h>
|
|
|
|
int main(void) {
|
|
wchar_t *wcs = L"zß水🍌";
|
|
|
|
int i;
|
|
for (i = 0; wcs[i] != L'\0'; i++)
|
|
{
|
|
if (0xFFFFFFFFu == putwchar(wcs[i]))
|
|
{
|
|
printf("Unable to putwchar() the wide character.\n");
|
|
return EXIT_FAILURE;
|
|
}
|
|
}
|
|
}
|