[PATCH 5/5] include: Add wmemset to wchar.h
Alex Henrie
alexhenrie24 at gmail.com
Sun May 27 22:05:56 CDT 2018
Signed-off-by: Alex Henrie <alexhenrie24 at gmail.com>
---
For https://bugs.winehq.org/show_bug.cgi?id=43300
include/msvcrt/wchar.h | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/include/msvcrt/wchar.h b/include/msvcrt/wchar.h
index a92bac61fc..448352cd2a 100644
--- a/include/msvcrt/wchar.h
+++ b/include/msvcrt/wchar.h
@@ -512,6 +512,14 @@ static inline wchar_t* __cdecl wmemmove(wchar_t *dst, const wchar_t *src, size_t
return dst;
}
+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
--
2.17.0
More information about the wine-devel
mailing list