2 char32_t *restrict dst,
3 const char **restrict src,
5 mbstate_t *restrict ps);
7 This file is part of the Public Domain C Library (PDCLib).
8 Permission is granted to use, modify, and / or redistribute at will.
16 #include <_PDCLIB_encoding.h>
17 #include <_PDCLIB_locale.h>
19 size_t _PDCLIB_mbsrtoc32s_l
21 char32_t *restrict dst,
22 const char **restrict src,
24 mbstate_t *restrict ps,
28 size_t dstlen = len = dst ? len : SIZE_MAX;
29 char32_t *restrict *restrict dstp = dst ? &dst : NULL;
31 size_t srclen = strlen(*src);
32 if(l->_Codec->__mbstoc32s(dstp, &dstlen, src, &srclen, ps)) {
40 size_t _PDCLIB_mbsrtoc32s(
41 char32_t *restrict dst,
42 const char **restrict src,
44 mbstate_t *restrict ps
47 return _PDCLIB_mbsrtoc32s_l(dst, src, len, ps, _PDCLIB_threadlocale());
53 #include <_PDCLIB_test.h>
57 TESTCASE( NO_TESTDRIVER );