source: trunk/sys/dietlibc/mbrlen.c @ 178

Last change on this file since 178 was 1, checked in by alain, 8 years ago

First import

File size: 202 bytes
Line 
1#include <wchar.h>
2#include <errno.h>
3
4static mbstate_t internal;
5
6size_t mbrlen(const char *s, size_t n, mbstate_t *ps) {
7  static mbstate_t internal;
8  return mbrtowc (NULL, s, n, ps ?: &internal);
9}
Note: See TracBrowser for help on using the repository browser.