toaruos/libc/wchar/wcscpy.c
2018-06-25 15:45:32 +09:00

8 lines
170 B
C

#include <wchar.h>
wchar_t * wcscpy(wchar_t * restrict dest, const wchar_t * restrict src) {
wchar_t * out = dest;
for (; (*dest=*src); src++, dest++);
return out;
}