1995d6d82SOliver Tappe /*
2995d6d82SOliver Tappe ** Copyright 2011, Oliver Tappe, zooey@hirschkaefer.de. All rights reserved.
3*47a21c5cSAugustin Cavalier ** Distributed under the terms of the MIT License.
4995d6d82SOliver Tappe */
5995d6d82SOliver Tappe
6995d6d82SOliver Tappe #include <wchar_private.h>
7995d6d82SOliver Tappe
8995d6d82SOliver Tappe
9995d6d82SOliver Tappe size_t
__wcstombs(char * s,const wchar_t * pwcs,size_t n)10995d6d82SOliver Tappe __wcstombs(char* s, const wchar_t* pwcs, size_t n)
11995d6d82SOliver Tappe {
12995d6d82SOliver Tappe static mbstate_t internalMbState;
13995d6d82SOliver Tappe
14995d6d82SOliver Tappe return __wcsrtombs(s, &pwcs, n, &internalMbState);
15995d6d82SOliver Tappe }
16995d6d82SOliver Tappe
17995d6d82SOliver Tappe
18995d6d82SOliver Tappe B_DEFINE_WEAK_ALIAS(__wcstombs, wcstombs);
19