diff options
author | tjr <tjr@FreeBSD.org> | 2004-05-13 11:20:27 +0000 |
---|---|---|
committer | tjr <tjr@FreeBSD.org> | 2004-05-13 11:20:27 +0000 |
commit | 3aa9288a48ca6d866ef3eb1b40a5eaf98e32f8d5 (patch) | |
tree | 18cf76677a9cfe230068951dd5933888ea573d26 /lib/libc/locale/wcstombs.c | |
parent | ef6f3a0ff2401b3ab570a749dc2a407d231110c3 (diff) | |
download | FreeBSD-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.c | 3 |
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)); } |