include: Add wmemcmp 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-27 21:05:53 -06:00 committed by Alexandre Julliard
parent e1bfd4b4cb
commit 0d5648b463
1 changed files with 11 additions and 0 deletions

View File

@ -484,6 +484,17 @@ static inline wchar_t *wmemchr(const wchar_t *s, wchar_t c, size_t n)
return NULL;
}
static inline int wmemcmp(const wchar_t *s1, const wchar_t *s2, size_t n)
{
size_t i;
for (i = 0; i < n; i++)
{
if (s1[i] > s2[i]) return 1;
if (s1[i] < s2[i]) return -1;
}
return 0;
}
#ifdef __cplusplus
}
#endif