Re:Tell HN: C Experts Panel – Ask us anything about C
by AaronBallman on Tuesday April 14, 2020 @09:51AM
(#22865922)
We've been considering proposals to add common POSIX APIs into C, but I don't believe we've seen a proposal for strlcpy or strlcat yet. I recall we agreed to add strdup to C given its wide availability and usage.
[ Parent
| on HN ]
Re:Tell HN: C Experts Panel – Ask us anything about C
by DougGwyn on Tuesday April 14, 2020 @10:17AM
(#22866265)
There are deficiencies in almost all proposals. Two new functions which avoid the problems are supposed to be published in C202x: strcasecmp and strncasecmp, added in header strings.h (note: not string.h).
Re:Tell HN: C Experts Panel – Ask us anything about C
by sramsay on Tuesday April 14, 2020 @02:48PM
(#22869882)
strdup seems like a perfect example of "standardizing existing practice." And it has never struck me as running against the spirit of C.