mirror of
https://github.com/ziglang/zig.git
synced 2025-12-06 14:23:09 +00:00
also start prefering NtDll API. so far: * NtQueryInformationFile * NtClose adds a performance workaround for windows unicode conversion. but that should probably be removed before merging
13 lines
215 B
C
Vendored
13 lines
215 B
C
Vendored
#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;
|
|
}
|
|
|