Y
Hacker News
new
|
ask
|
show
|
jobs
by
sortie
3782 days ago
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.