|
NAMEmbsrtowcs , mbsnrtowcs —
convert a character string to a wide-character string
(restartable)
LIBRARYStandard C Library (libc, -lc)SYNOPSIS#include <wchar.h>
size_t
size_t
DESCRIPTIONThembsrtowcs () function converts a sequence of
multibyte characters pointed to indirectly by src into a
sequence of corresponding wide characters and stores at most
len of them in the wchar_t array
pointed to by dst, until it encounters a terminating
null character ('\0' ).
If dst is If dst is not The mbstate_t argument,
ps, is used to keep track of the shift state. If it is
The RETURN VALUESIf successful, and dst is not NULL, thembsrtowcs () and mbsnrtowcs ()
functions return the number of wide characters stored in the array pointed to
by dst.
If dst was NULL then the functions
If either one of the functions is not successful then (size_t)-1 is returned. ERRORSThembsrtowcs () and mbsnrtowcs ()
functions will fail if:
SEE ALSOmbrtowc(3), mbstowcs(3), multibyte(3), wcsrtombs(3)STANDARDSThembsrtowcs () function conforms to
ISO/IEC 9899:1999 (“ISO C99”).
The
Visit the GSP FreeBSD Man Page Interface. |