logoalt Hacker News

masklinnlast Tuesday at 8:37 PM0 repliesview on HN

> If it was designed for non-null terminated strings, why would it specifically pad after a null terminator?

Padded and terminated strings are completely different beasts. And the text you quote tells you black on white that strncpy deals in padded strings.