MBSRTOWCS(3) BSD Library Functions Manual MBSRTOWCS(3)
NAME
mbsnrtowcs, mbsnrtowcs_l, mbsrtowcs, mbsrtowcs_l -- convert a character string to a wide-character string (restartable)
LIBRARY
Standard C Library (libc, -lc)
SYNOPSIS
#include <wchar.h>
size_t
mbsnrtowcs(wchar_t *restrict dst, const char **restrict src, size_t nms, size_t len, mbstate_t *restrict ps);
size_t
mbsrtowcs(wchar_t *restrict dst, const char **restrict src, size_t len, mbstate_t *restrict ps);
#include <wchar.h>
#include <xlocale.h>
size_t
mbsrtowcs_l(wchar_t *restrict dst, const char **restrict src, size_t len, mbstate_t *restrict ps, locale_t loc);
size_t
mbsnrtowcs_l(wchar_t *restrict dst, const char **restrict src, size_t nms, size_t len, mbstate_t *restrict ps, locale_t loc);
DESCRIPTION
The mbsrtowcs() function converts a sequence of multibyte characters, pointed to indirectly by src, into a sequence of corresponding wide
characters. It stores at most len of them in the wchar_t array pointed to by dst, until it encounters a terminating null character ('