zig/libc/mingw/misc/mempcpy.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
195 B
C

#define __CRT__NO_INLINE
#include <string.h>
void * __cdecl
mempcpy (void *d, const void *s, size_t len)
{
char *r = ((char *) d) + len;
if (len != 0)
memcpy (d, s, len);
return r;
}