summaryrefslogtreecommitdiffstats
path: root/lib/libc/locale/wcstombs.c
diff options
context:
space:
mode:
authortjr <tjr@FreeBSD.org>2004-05-13 11:20:27 +0000
committertjr <tjr@FreeBSD.org>2004-05-13 11:20:27 +0000
commit3aa9288a48ca6d866ef3eb1b40a5eaf98e32f8d5 (patch)
tree18cf76677a9cfe230068951dd5933888ea573d26 /lib/libc/locale/wcstombs.c
parentef6f3a0ff2401b3ab570a749dc2a407d231110c3 (diff)
downloadFreeBSD-src-3aa9288a48ca6d866ef3eb1b40a5eaf98e32f8d5.zip
FreeBSD-src-3aa9288a48ca6d866ef3eb1b40a5eaf98e32f8d5.tar.gz
Allow encoding modules to override the default implementations of
mbsrtowcs() and wcsrtombs(). Provide a fast implementation for the trivial "NONE" encoding.
Diffstat (limited to 'lib/libc/locale/wcstombs.c')
-rw-r--r--lib/libc/locale/wcstombs.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libc/locale/wcstombs.c b/lib/libc/locale/wcstombs.c
index 79ee279..5bb5954 100644
--- a/lib/libc/locale/wcstombs.c
+++ b/lib/libc/locale/wcstombs.c
@@ -29,6 +29,7 @@ __FBSDID("$FreeBSD$");
#include <stdlib.h>
#include <wchar.h>
+#include "mblocal.h"
size_t
wcstombs(char * __restrict s, const wchar_t * __restrict pwcs, size_t n)
@@ -37,5 +38,5 @@ wcstombs(char * __restrict s, const wchar_t * __restrict pwcs, size_t n)
mbstate_t mbs;
mbs = initial;
- return (wcsrtombs(s, &pwcs, n, &mbs));
+ return (__wcsrtombs(s, &pwcs, n, &mbs));
}
OpenPOWER on IntegriCloud