Files
RedBear-OS/tests/wchar/putwchar.c
T
Tibor Nagy 4381bb2a22 tests: Remove redundant return statements
When the execution reaches the end of the main functions, they implicitly return a successful status.
2019-02-20 21:09:03 +01:00

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;
}
}
}