Make consistent with the better written wcsrtombs function:

- Fix syntax
- Remove the (slightly wrong) duplicate explanation of the error condition
- Change reference to invalid multibyte character into invalid wide character
This commit is contained in:
Diomidis Spinellis 2004-02-27 15:03:22 +00:00
parent eec24f3275
commit 3f0a01ea87

View File

@ -63,10 +63,11 @@ bytes are stored in
Partial multibyte characters at the end of the string are not stored.
The multibyte character string is null terminated if there is room.
.Sh RETURN VALUES
The
.Fn wcstombs
function returns the number of bytes converted,
not counting any terminating null byte, or \-1
if an invalid multibyte character was encountered.
function returns the number of bytes converted
(not including any terminating null), if successful, otherwise it returns
.Po Vt size_t Pc Ns \-1 .
.Sh ERRORS
The
.Fn wcstombs
@ -75,7 +76,7 @@ function will fail if:
.\".It Bq Er EINVAL
.\"Invalid argument.
.It Bq Er EILSEQ
An invalid multibyte sequence was detected.
An invalid wide character was encountered.
.El
.Sh SEE ALSO
.Xr mbstowcs 3 ,