Lines 98-112
Link Here
|
98 |
bytes from the buffer pointed to by |
98 |
bytes from the buffer pointed to by |
99 |
.Fa src . |
99 |
.Fa src . |
100 |
.Sh RETURN VALUES |
100 |
.Sh RETURN VALUES |
101 |
The |
101 |
If successful, and |
|
|
102 |
.Fa dst |
103 |
is not NULL, the |
102 |
.Fn mbsrtowcs |
104 |
.Fn mbsrtowcs |
103 |
and |
105 |
and |
104 |
.Fn mbsnrtowcs |
106 |
.Fn mbsnrtowcs |
105 |
functions return the number of wide characters stored in |
107 |
functions return the number of wide characters stored in |
106 |
the array pointed to by |
108 |
the array pointed to by |
|
|
109 |
.Fa dst . |
110 |
.Pp |
111 |
If |
112 |
.Fa dst |
113 |
was NULL then the functions |
114 |
.Fn mbsrtowcs |
115 |
and |
116 |
.Fn mbsnrtowcs |
117 |
return the number of wide characters that would have been |
118 |
stored had |
107 |
.Fa dst |
119 |
.Fa dst |
108 |
if successful, otherwise it returns |
120 |
pointed to an infinitely large array. |
109 |
.Po Vt size_t Pc Ns \-1 . |
121 |
.Pp |
|
|
122 |
If either function is not successful then |
123 |
.Po Vt size_t Pc Ns \-1 |
124 |
is returned. |
110 |
.Sh ERRORS |
125 |
.Sh ERRORS |
111 |
The |
126 |
The |
112 |
.Fn mbsrtowcs |
127 |
.Fn mbsrtowcs |