1b3e94a20d
From release 0.1.0 pre-patched archive. This includes all Red Bear modifications previously maintained as patches in local/patches/relibc/.
16 lines
308 B
C
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;
|
|
} |