31 ms·
There were a number of recent proposals to adopt various POSIX functions by Martin Sebor into C including: N2353 2019/03/17 Sebor, Add strdup and strndup to
by rseacord 7y ago
There were a number of recent proposals to adopt various POSIX functions by Martin Sebor into C including:
N2353 2019/03/17 Sebor, Add strdup and strndup to C2X
N2352 2019/03/17 Sebor, Add stpcpy, and stpncpy to C2X
N2351 2019/03/17 Sebor, Add strnlen to C2X
He is lurking on this thread as well. These proposals can all be found in the document log at http://www.open-std.org/jtc1/sc22/wg14/www/wg14_document_log.htm http://www.open-std.org/jtc1/sc22/wg14/www/wg14_document_log...
- rseacord 7y agoThe results (from the minutes http://www.open-std.org/jtc1/sc22/wg14/www/docs/n2377.pdf http://www.open-std.org/jtc1/sc22/wg14/www/docs/n2377.pdf) 6.33 Sebor, Add strnlen to C2X [N 2351] Result: No consensus on putting N2351 into C2X. 6.34 Sebor, Add stpcpy, and stpncpy to C2X [N 2352] Result: No consensus to put N2352 into C2X. 6.35 Sebor, Add strdup and strndup to C2X [N 2353] Result: N2353 be put into C2X. The committee wants a proposal for the wide character versions of any POSIX functions voted in this meeting.
- rmind 7y agoThere have been some disagreements on strlcpy/strlcat (BSD vs glibc crowd), although by now the debate has died off and these functions are pretty widely used. Also, while here, it would be lovely to have strchrnul() included.
- loeg 7y agoglibc still refuses to add the functions because they are not required by a standard.