diff options
author | tjr <tjr@FreeBSD.org> | 2004-05-12 14:26:54 +0000 |
---|---|---|
committer | tjr <tjr@FreeBSD.org> | 2004-05-12 14:26:54 +0000 |
commit | 5ad27cd64f958bb973cd2fe0e8c9169e69168e05 (patch) | |
tree | a4b3d33fdc70e217fd81cdb660a70bd2e6e3af51 /lib/libc/locale/mbrlen.c | |
parent | e3f042f4aff04f73fd65f7788919c29bd71cfd1e (diff) | |
download | FreeBSD-src-5ad27cd64f958bb973cd2fe0e8c9169e69168e05.zip FreeBSD-src-5ad27cd64f958bb973cd2fe0e8c9169e69168e05.tar.gz |
Reduce overhead by calling internal versions of the multibyte conversion
functions directly wherever possible.
Diffstat (limited to 'lib/libc/locale/mbrlen.c')
-rw-r--r-- | lib/libc/locale/mbrlen.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libc/locale/mbrlen.c b/lib/libc/locale/mbrlen.c index edad289..b4c3a04 100644 --- a/lib/libc/locale/mbrlen.c +++ b/lib/libc/locale/mbrlen.c @@ -28,6 +28,7 @@ __FBSDID("$FreeBSD$"); #include <wchar.h> +#include "mblocal.h" size_t mbrlen(const char * __restrict s, size_t n, mbstate_t * __restrict ps) @@ -36,5 +37,5 @@ mbrlen(const char * __restrict s, size_t n, mbstate_t * __restrict ps) if (ps == NULL) ps = &mbs; - return (mbrtowc(NULL, s, n, ps)); + return (__mbrtowc(NULL, s, n, ps)); } |