2 .\" This file and its contents are supplied under the terms of the
3 .\" Common Development and Distribution License ("CDDL"), version 1.0.
4 .\" You may only use this file in accordance with the terms of version
7 .\" A full copy of the text of the CDDL should have accompanied this
8 .\" source. A copy of the CDDL is also available via the Internet at
9 .\" http://www.illumos.org/license/CDDL.
12 .\" Copyright 2017 Nexenta Systems, Inc.
20 .Nd convert a multibyte character string to a wide-character string
27 .Fa "wchar_t *restrict pwcs"
28 .Fa "const char *restrict s"
35 .Fa "wchar_t *restrict pwcs"
36 .Fa "const char *restrict s"
43 function converts a multibyte character string
45 beginning in the initial conversion state into a wide-character string.
50 the converted characters are stored into array pointed to by
53 Conversion continues up to and including a terminating null character, which is
56 wide-characters have been stored into the array pointed to by
61 function is affected by the
63 category of the current locale.
67 function behaves identically to
69 except instead of using the current locale, it uses the locale as specified by
76 functions return the number of wide-characters successfully converted, not
77 including the terminating null
81 if conversion encounters a sequence of bytes that does not form a valid
88 functions will fail if:
91 An invalid multibyte sequence was detected.
93 The conversion state is invalid.
95 .Sh INTERFACE STABILITY