]> git.saurik.com Git - apple/libc.git/blobdiff - locale/FreeBSD/mbsinit.c
Libc-1082.50.1.tar.gz
[apple/libc.git] / locale / FreeBSD / mbsinit.c
index cddb56726acdd68f5027134bb9fc49936aea6b52..bbc22667e944ce7802d73e92eff0c326dfb2ca20 100644 (file)
 #include <sys/cdefs.h>
 __FBSDID("$FreeBSD: src/lib/libc/locale/mbsinit.c,v 1.3 2004/05/12 14:09:04 tjr Exp $");
 
+#include "xlocale_private.h"
+
 #include <wchar.h>
 #include "mblocal.h"
 
 int
-mbsinit(const mbstate_t *ps)
+mbsinit_l(const mbstate_t *ps, locale_t loc)
 {
 
-       return (__mbsinit(ps));
+       NORMALIZE_LOCALE(loc);
+       return (loc->__lc_ctype->__mbsinit(ps, loc));
+}
+
+int
+mbsinit(const mbstate_t *ps)
+{
+       return mbsinit_l(ps, __current_locale());
 }