diff options
author | dds <dds@FreeBSD.org> | 2004-02-27 15:03:22 +0000 |
---|---|---|
committer | dds <dds@FreeBSD.org> | 2004-02-27 15:03:22 +0000 |
commit | 02e13ba2ce6b982cbd2ae6dfb7494aa44654a148 (patch) | |
tree | f15c423209b8d64a2515a99b711f71021ecee853 /lib/libc | |
parent | 84b2428dd3d99604fb1ac3cf7211ad9404d5f62b (diff) | |
download | FreeBSD-src-02e13ba2ce6b982cbd2ae6dfb7494aa44654a148.zip FreeBSD-src-02e13ba2ce6b982cbd2ae6dfb7494aa44654a148.tar.gz |
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
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/locale/wcstombs.3 | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/libc/locale/wcstombs.3 b/lib/libc/locale/wcstombs.3 index ba35247..5fd198d 100644 --- a/lib/libc/locale/wcstombs.3 +++ b/lib/libc/locale/wcstombs.3 @@ -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 , |