Bug 215848 - [patch] Ambiguity in returns for mbsrtowcs
Summary: [patch] Ambiguity in returns for mbsrtowcs
Status: New
Alias: None
Product: Documentation
Classification: Unclassified
Component: Manual Pages (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: freebsd-bugs mailing list
URL:
Keywords: patch
Depends on:
Blocks:
 
Reported: 2017-01-07 00:46 UTC by Andrew Stevenson
Modified: 2019-05-28 20:22 UTC (History)
1 user (show)

See Also:


Attachments
diff to mbsrtowcs.3 (820 bytes, patch)
2017-01-07 00:46 UTC, Andrew Stevenson
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Stevenson 2017-01-07 00:46:59 UTC
Created attachment 178593 [details]
diff to mbsrtowcs.3

It's not clear from the man pages of several multi-byte and wide character functions that, if you pass NULL as the destination, they return the number of characters that would have been written where dst an actual array. I attach a diff to fix one of them.

I haven't done others because:

a) I need to confirm which ones this is true for

and

b) I wasn't sure how great my wording was.

If someone who knows more about this than I wants to make similar changes to other man pages then that is great. Otherwise, once final wording is decided upon, I might get time to test and submit more.

I am using 11-stable r310981