Re: strncpy and 'n'
In article <firstname.lastname@example.org>,
Jorgen Grahn <email@example.com> wrote:
>That it came from V7 was news to me. In a way, that's almost enough
>information. V7 means the late 1970s; programmers were fewer and on
>average smarter, and the conventions weren't the same as today.
Fixed-width members [or variable with fixed maximum] are old as dirt.
Think punched cards and 'tabulating machines'.
Used as a key in a B-tree or hash table, you really do want to clear out
the 'junk' (no need to go looking for the terminator).