aboutsummaryrefslogtreecommitdiff
path: root/lib/libc/locale/mbstowcs.c
diff options
context:
space:
mode:
authorTim J. Robbins <tjr@FreeBSD.org>2004-05-13 11:20:27 +0000
committerTim J. Robbins <tjr@FreeBSD.org>2004-05-13 11:20:27 +0000
commitea4ac135ff6e5e1881e3ebe0e730bcf1223cfbe7 (patch)
tree18cf76677a9cfe230068951dd5933888ea573d26 /lib/libc/locale/mbstowcs.c
parent33e48d06ba79e43b5126ddde5abf21fa7b21b1e2 (diff)
Allow encoding modules to override the default implementations of
mbsrtowcs() and wcsrtombs(). Provide a fast implementation for the trivial "NONE" encoding.
Notes
Notes: svn path=/head/; revision=129179
Diffstat (limited to 'lib/libc/locale/mbstowcs.c')
-rw-r--r--lib/libc/locale/mbstowcs.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libc/locale/mbstowcs.c b/lib/libc/locale/mbstowcs.c
index 1a05c7bf7baa..4623535457dd 100644
--- a/lib/libc/locale/mbstowcs.c
+++ b/lib/libc/locale/mbstowcs.c
@@ -29,6 +29,7 @@ __FBSDID("$FreeBSD$");
#include <stdlib.h>
#include <wchar.h>
+#include "mblocal.h"
size_t
mbstowcs(wchar_t * __restrict pwcs, const char * __restrict s, size_t n)
@@ -37,5 +38,5 @@ mbstowcs(wchar_t * __restrict pwcs, const char * __restrict s, size_t n)
mbstate_t mbs;
mbs = initial;
- return (mbsrtowcs(pwcs, &s, n, &mbs));
+ return (__mbsrtowcs(pwcs, &s, n, &mbs));
}