Re:Best aspects of C
by Gibbon1 on Wednesday November 18, 2020 @11:52PM
(#25146354)
I think I read somewhere the provenience of strncpy was to copy strings into a fixed length field which is why it has the deranged behavior of not terminating the string. Think file systems where the max file name is 8 characters. Or compilers that truncated variable names at 31.
[ Parent
| on HN ]
There are no comments on this comment yet.