Re:C String Creation
by sortie on Friday February 12, 2016 @02:54AM
(#11085856)
As in the article, strncpy has valid uses, but it's widely misunderstood due to the poor name. strlcpy is what the name suggests. People are also surprised by the zero padding.
[ Parent
| on HN ]
There are no comments on this comment yet.