1 /*
2 Copyright (c) 2002 Thomas Fitzsimmons <fitzsim@redhat.com>
3  */
4 #include <newlib.h>
5 #include <wchar.h>
6 #include <stdlib.h>
7 #include <stdio.h>
8 #include <errno.h>
9 
10 size_t
mbrlen(const char * __restrict s,size_t n,mbstate_t * __restrict ps)11 mbrlen(const char *__restrict s, size_t n, mbstate_t *__restrict ps)
12 {
13   return mbrtowc(NULL, s, n, ps);
14 }
15