xref: /haiku/src/system/libroot/posix/wchar/wctomb.c (revision e7be020ce59cd8a50dcb9a782b3b15cfa769396c)
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 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