zig/libc/mingw/misc/wmempcpy.c
Andrew Kelley 2bb93784c6
mingw: build and link mingwex.lib
zig can now cross compile hello.c targeting windows
2019-07-10 17:41:34 -04:00

13 lines
215 B
C

#define __CRT__NO_INLINE
#include <wchar.h>
wchar_t * __cdecl
wmempcpy (wchar_t *d, const wchar_t *s, size_t len)
{
wchar_t *r = d + len;
if (len != 0)
memcpy (d, s, len * sizeof (wchar_t));
return r;
}