toaruos/libc/wchar/wcscpy.c

8 lines
170 B
C
Raw Normal View History

2018-06-25 09:45:32 +03:00
#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;
}