source: asp3_tinet_ecnl_rx/trunk/musl-1.1.18/src/multibyte/mbrtoc32.c@ 337

Last change on this file since 337 was 337, checked in by coas-nagasima, 6 years ago

ASP3版ECNLを追加

  • Property svn:eol-style set to native
  • Property svn:mime-type set to text/x-csrc;charset=UTF-8
File size: 354 bytes
Line 
1#include <uchar.h>
2#include <wchar.h>
3
4size_t mbrtoc32(char32_t *restrict pc32, const char *restrict s, size_t n, mbstate_t *restrict ps)
5{
6 static unsigned internal_state;
7 if (!ps) ps = (void *)&internal_state;
8 if (!s) return mbrtoc32(0, "", 1, ps);
9 wchar_t wc;
10 size_t ret = mbrtowc(&wc, s, n, ps);
11 if (ret <= 4 && pc32) *pc32 = wc;
12 return ret;
13}
Note: See TracBrowser for help on using the repository browser.