libroot_debug: Merge guarded heap into libroot_debug.
[haiku.git] / src / system / libroot / posix / wchar / wcstombs.c
blobf21128db2e0d4f2fbd8b84da19a9b6abbd64e63f
1 /*
2 ** Copyright 2011, Oliver Tappe, zooey@hirschkaefer.de. All rights reserved.
3 ** Distributed under the terms of the Haiku License.
4 */
6 #include <wchar_private.h>
9 size_t
10 __wcstombs(char* s, const wchar_t* pwcs, size_t n)
12 static mbstate_t internalMbState;
14 return __wcsrtombs(s, &pwcs, n, &internalMbState);
18 B_DEFINE_WEAK_ALIAS(__wcstombs, wcstombs);