FreeBSD Bugzilla – Attachment 178593 Details for
Bug 215848
[patch] Ambiguity in returns for mbsrtowcs
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
diff to mbsrtowcs.3
mbsrtowcs.3.patch (text/plain), 820 bytes, created by
Andrew Stevenson
on 2017-01-07 00:46:59 UTC
(
hide
)
Description:
diff to mbsrtowcs.3
Filename:
MIME Type:
Creator:
Andrew Stevenson
Created:
2017-01-07 00:46:59 UTC
Size:
820 bytes
patch
obsolete
>--- /usr/src/lib/libc/locale/mbsrtowcs.3 2016-07-17 11:51:01.706900000 +0200 >+++ mbsrtowcs.3 2017-01-07 01:28:57.728279000 +0100 >@@ -98,15 +98,30 @@ > bytes from the buffer pointed to by > .Fa src . > .Sh RETURN VALUES >-The >+If successful, and >+.Fa dst >+is not NULL, the > .Fn mbsrtowcs > and > .Fn mbsnrtowcs > functions return the number of wide characters stored in > the array pointed to by >+.Fa dst . >+.Pp >+If >+.Fa dst >+was NULL then the functions >+.Fn mbsrtowcs >+and >+.Fn mbsnrtowcs >+return the number of wide characters that would have been >+stored had > .Fa dst >-if successful, otherwise it returns >-.Po Vt size_t Pc Ns \-1 . >+pointed to an infinitely large array. >+.Pp >+If either function is not successful then >+.Po Vt size_t Pc Ns \-1 >+is returned. > .Sh ERRORS > The > .Fn mbsrtowcs
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 215848
: 178593