xref: /haiku/src/system/libroot/posix/wchar/mbsinit.c (revision 3369e03d5cde9709c8aa70c99bfe6ce24ba65bf9)
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 __mbsinit(const mbstate_t* ps)
11 {
12 	return ps == NULL || ps->count == 0;
13 }
14 
15 
16 B_DEFINE_WEAK_ALIAS(__mbsinit, mbsinit);
17