xref: /haiku/src/system/libroot/posix/wchar/wmemset.c (revision 95c9effd68127df2dce202d5e254a7c86560010a)
1 /*
2 ** Copyright 2011, Oliver Tappe, zooey@hirschkaefer.de. All rights reserved.
3 ** Distributed under the terms of the Haiku License.
4 */
5 
6 #include <wchar_private.h>
7 
8 
9 wchar_t*
10 __wmemset(wchar_t* destIn, const wchar_t wc, size_t count)
11 {
12 	wchar_t* dest = destIn;
13 	while (count-- > 0)
14 		*dest++ = wc;
15 
16 	return destIn;
17 }
18 
19 
20 B_DEFINE_WEAK_ALIAS(__wmemset, wmemset);
21