[TUHS] History of strncpy

Nevin Liber nevin at eviloverlord.com
Wed Jan 23 14:03:54 AEST 2013


On another list I am on, a discussion about the history and purpose of
strncpy has arisen.  The only reference I have found to it is <
http://lwn.net/Articles/507432/>:

The original reason for strncpy() was when directory names were limited to
14 chars. The other two bytes contained the inode number. For that
particular case, strncpy() worked quite well.

Is that really the reason it came into being?

Just a bit curious,
-- 
 Nevin ":-)" Liber  <mailto:nevin at eviloverlord.com>  (847) 691-1404
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://minnie.tuhs.org/pipermail/tuhs/attachments/20130122/95c97f5e/attachment.html>


More information about the TUHS mailing list