source:
trunk/sys/dietlibc/mbrlen.c
@
119
| Last change on this file since 119 was 1, checked in by , 9 years ago | |
|---|---|
| File size: 202 bytes | |
| Rev | Line | |
|---|---|---|
| [1] | 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.
