The Unix Heritage Society mailing list
 help / color / mirror / Atom feed
* [TUHS] History of strncpy
@ 2013-01-23 17:56 Michael Spacefalcon
  2013-01-23 21:08 ` Larry McVoy
  2013-01-23 21:39 ` Ronald Natalie
  0 siblings, 2 replies; 28+ messages in thread
From: Michael Spacefalcon @ 2013-01-23 17:56 UTC (permalink / raw)


Ronald Natalie <ron at ronnatalie.com> wrote:

> I suspect strcpy arrived with the "portable I/O library", an abomination
> that eventually evolved into the stdio library and to this day is still
> stinking up the standard C language.

What's so bad about stdio?  That's a genuine question - I've never had
a reason to dislike stdio...

SF



^ permalink raw reply	[flat|nested] 28+ messages in thread
* [TUHS] History of strncpy
@ 2013-01-23  4:03 Nevin Liber
  2013-01-23  4:41 ` Warren Toomey
                   ` (3 more replies)
  0 siblings, 4 replies; 28+ messages in thread
From: Nevin Liber @ 2013-01-23  4:03 UTC (permalink / raw)


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>


^ permalink raw reply	[flat|nested] 28+ messages in thread

end of thread, other threads:[~2013-02-01  0:28 UTC | newest]

Thread overview: 28+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-01-23 17:56 [TUHS] History of strncpy Michael Spacefalcon
2013-01-23 21:08 ` Larry McVoy
2013-01-23 21:39 ` Ronald Natalie
2013-01-23 21:46   ` John Cowan
2013-01-24  6:02     ` Larry McVoy
2013-01-24  6:34       ` Steve Nickolas
2013-01-24 14:42       ` Ronald Natalie
2013-01-24 14:52         ` Warner Losh
2013-01-24 16:01           ` Ronald Natalie
2013-01-24 18:31             ` Tom Ivar Helbekkmo
2013-01-25  2:06               ` Warner Losh
2013-01-24 16:21           ` Clem Cole
2013-02-01  0:28             ` Larry McVoy
2013-01-31 23:52           ` Random832
2013-02-01  0:06             ` Warner Losh
  -- strict thread matches above, loose matches on Subject: below --
2013-01-23  4:03 Nevin Liber
2013-01-23  4:41 ` Warren Toomey
2013-01-23  4:58 ` Warner Losh
2013-01-23 14:16 ` Clem Cole
2013-01-23 15:01   ` Ronald Natalie
2013-01-23 15:24     ` Armando Stettner
2013-01-23 17:49       ` scj
2013-01-23 18:19       ` Ronald Natalie
2013-01-23 19:33         ` Ronald Natalie
2013-01-23 19:59           ` Clem Cole
2013-01-23 22:43     ` Mary Ann Horton
2013-01-24  0:01       ` Clem Cole
2013-01-24  0:37 ` Jonathan Gevaryahu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).