Path: utzoo!utgpu!jarvis.csri.toronto.edu!clyde.concordia.ca!uunet!lll-winken!sun-barr!decwrl!shelby!csli!poser From: poser@csli.Stanford.EDU (Bill Poser) Newsgroups: comp.lang.c Subject: Re: strncpy Keywords: strncpy null termination Message-ID: <11522@csli.Stanford.EDU> Date: 23 Dec 89 01:18:37 GMT References: <11509@csli.Stanford.EDU> <8313@stiatl.UUCP> <621@buster.irby.com> <11515@csli.Stanford.EDU> <9810@ardent.UUCP> Sender: poser@csli.Stanford.EDU (Bill Poser) Reply-To: poser@csli.stanford.edu (Bill Poser) Organization: Center for the Study of Language and Information, Stanford U. Lines: 12 Jerry Schwartz suggests that my question about why strncpy does not null terminate was ill-formulated because I didn't say what sort of answer I was looking for. I disagree. Sometimes only one kind of answer is appropriate. For example, if you're designing a language the only kind of answer you are interested in is rationale, so you can decide if the comparable construct in your own language should work that way. But if you want to know why a feature of a language is the way it is, then the nature of the explanation is open. It may be that there is an explicit rationale or it may be that there is no particular rationale for doing it that way and that the reason is purely historical. But you don't know in advance.