Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on C Strings and my slow descent to madness. Parent comment
In fact, strlcpy is worse:
* strlcpy truncates the source string to fit in the destination (which is a security risk)
* strlcpy does not perform all the runtime checks that strcpy_s does
* strlcpy does not make failures obvious by setting the destination to a null string or calling a handler if the call fails.
an optional part, which makes it pretty worthless, if it were not so already.
In fact, strlcpy is worse:
* strlcpy truncates the source string to fit in the destination (which is a security risk)
* strlcpy does not perform all the runtime checks that strcpy_s does
* strlcpy does not make failures obvious by setting the destination to a null string or calling a handler if the call fails.