logoalt Hacker News

kstenerudtoday at 9:45 AM0 repliesview on HN

strncpy is 99.999% of the time NOT the correct function to call, so this is a huge win.

It's just a shame that such a confusing name was chosen for such a niche use case (fixed width records that require null padding).