2 ms·
> If it was designed for non-null terminated strings, why would it specifically pad after a null terminator? Padded and terminated strings are completely diffe
by masklinn 10mo ago
> 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.