Module: wine Branch: stable Commit: d7c16365207852f397fdf20b491c51df7cb16cb8 URL: https://source.winehq.org/git/wine.git/?a=commit;h=d7c16365207852f397fdf20b4...
Author: Alex Henrie alexhenrie24@gmail.com Date: Mon May 28 15:49:57 2018 -0600
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 (cherry picked from commit ae023be3eeb98fbeee4130972fdfbd1866b8e495) Signed-off-by: Michael Stefaniuc mstefani@winehq.org
---
include/msvcrt/wchar.h | 8 ++++++++ 1 file changed, 8 insertions(+)
diff --git a/include/msvcrt/wchar.h b/include/msvcrt/wchar.h index c300391..6d5bb41 100644 --- a/include/msvcrt/wchar.h +++ b/include/msvcrt/wchar.h @@ -505,6 +505,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