mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-06 21:40:31 +00:00
include: Add wmemset 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:
parent
b583a636c1
commit
ae023be3ee
|
@ -506,6 +506,14 @@ static inline wchar_t* __cdecl wmemmove(wchar_t *dst, const wchar_t *src, size_t
|
|||
return memmove(dst, src, n * sizeof(wchar_t));
|
||||
}
|
||||
|
||||
static inline wchar_t* __cdecl wmemset(wchar_t *s, wchar_t c, size_t n)
|
||||
{
|
||||
size_t i;
|
||||
for (i = 0; i < n; i++)
|
||||
s[i] = c;
|
||||
return s;
|
||||
}
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue