Files
RedBear-OS/tests/wchar/wcpcpy.c
T
Red Bear OS 1b3e94a20d Red Bear OS relibc baseline
From release 0.1.0 pre-patched archive.
This includes all Red Bear modifications previously maintained
as patches in local/patches/relibc/.
2026-06-27 09:19:26 +03:00

16 lines
308 B
C

#include <wchar.h>
#include <assert.h>
#include <string.h>
int main() {
wchar_t src[] = L"こんにちは世界!";
wchar_t dest[9];
wchar_t* result = wcpcpy(dest, src);
assert(wcscmp(dest, src) == 0);
assert(*result == L'\0');
assert(result == dest + wcslen(src));
return 0;
}