Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> 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.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: