Re:Non-Posix File Systems
by saagarjha on Wednesday September 09, 2020 @06:02AM
(#24419327)
stpncpy is a poor choice as a efficient “safe” string copying routine. The right choice is memccpy, which (thankfully) is part of C2X. Discussion as to why is here: http://www.open-std.org/jtc1/sc22/wg14/www/docs/n2349.htm, and I have words on it too: https://saagarjha.com/blog/2020/04/12/designing-a-better-str...
[ Parent
| on HN ]
There are no comments on this comment yet.