include: Add wmemcpy to wchar.h.

Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alex Henrie 2018-05-28 15:49:55 -06:00 committed by Alexandre Julliard
parent 8c968f774c
commit 9e093cbcc7
1 changed files with 6 additions and 0 deletions

View File

@ -10,6 +10,7 @@
#include <crtdefs.h>
#include <stdarg.h>
#include <string.h>
#include <pshpack8.h>
@ -495,6 +496,11 @@ static inline int wmemcmp(const wchar_t *s1, const wchar_t *s2, size_t n)
return 0;
}
static inline wchar_t* __cdecl wmemcpy(wchar_t *dst, const wchar_t *src, size_t n)
{
return memcpy(dst, src, n * sizeof(wchar_t));
}
#ifdef __cplusplus
}
#endif