xref: /haiku/src/system/libroot/posix/wchar/wctomb.c (revision 17889a8c70dbb3d59c1412f6431968753c767bab)
1 /*
2 ** Copyright 2011, Oliver Tappe, zooey@hirschkaefer.de. All rights reserved.
3 ** Distributed under the terms of the MIT License.
4 */
5 
6 #include <wchar_private.h>
7 
8 
9 int
10 __wctomb(char* s, wchar_t wc)
11 {
12 	static mbstate_t internalMbState;
13 
14 	return __wcrtomb(s, wc, &internalMbState);
15 }
16 
17 
18 B_DEFINE_WEAK_ALIAS(__wctomb, wctomb);
19