Path: utzoo!utgpu!jarvis.csri.toronto.edu!clyde.concordia.ca!uunet!aplcen!uakari.primate.wisc.edu!brutus.cs.uiuc.edu!jarthur!aqdata!sullivan From: sullivan@aqdata.uucp (Michael T. Sullivan) Newsgroups: comp.lang.c Subject: Re: strncpy Message-ID: <1989Dec22.172409.14372@aqdata.uucp> Date: 22 Dec 89 17:24:09 GMT References: <11510@csli.Stanford.EDU> Organization: aQdata, Inc. Western Region -- San Dimas, CA Lines: 16 From article <11510@csli.Stanford.EDU>, by poser@csli.Stanford.EDU (Bill Poser): > > I have also been told that it is useful for copying into fixed length > char arrays which are not intended to be null-terminated when full. > I am aware of such string representations, but those aren't the standard > C string representation and so the question arises as to why the > standard string library should include a function that doesn't fit the > usual representation of strings. Isn't it nice that there IS a function that handles the non-standard case. I think your question really should be why doesn't the standard library include a function that does a null terminated strncpy. -- Michael Sullivan uunet!jarthur.uucp!aqdata!sullivan aQdata, Inc. San Dimas, CA