source:
trunk/sys/dietlibc/mbrlen.c
@
64
Last change on this file since 64 was 1, checked in by , 8 years ago | |
---|---|
File size: 202 bytes |
Line | |
---|---|
1 | #include <wchar.h> |
2 | #include <errno.h> |
3 | |
4 | static mbstate_t internal; |
5 | |
6 | size_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.