summaryrefslogtreecommitdiffstats
path: root/lib/libc/locale/mblen.c
diff options
context:
space:
mode:
authortjr <tjr@FreeBSD.org>2004-05-12 14:26:54 +0000
committertjr <tjr@FreeBSD.org>2004-05-12 14:26:54 +0000
commit5ad27cd64f958bb973cd2fe0e8c9169e69168e05 (patch)
treea4b3d33fdc70e217fd81cdb660a70bd2e6e3af51 /lib/libc/locale/mblen.c
parente3f042f4aff04f73fd65f7788919c29bd71cfd1e (diff)
downloadFreeBSD-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/mblen.c')
-rw-r--r--lib/libc/locale/mblen.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libc/locale/mblen.c b/lib/libc/locale/mblen.c
index 8db5335..8486e71 100644
--- a/lib/libc/locale/mblen.c
+++ b/lib/libc/locale/mblen.c
@@ -31,6 +31,7 @@ __FBSDID("$FreeBSD$");
#include <limits.h>
#include <stdlib.h>
#include <wchar.h>
+#include "mblocal.h"
int
mblen(const char *s, size_t n)
@@ -44,7 +45,7 @@ mblen(const char *s, size_t n)
mbs = initial;
return (0);
}
- rval = mbrtowc(NULL, s, n, &mbs);
+ rval = __mbrtowc(NULL, s, n, &mbs);
if (rval == (size_t)-1 || rval == (size_t)-2)
return (-1);
if (rval > INT_MAX) {
OpenPOWER on IntegriCloud