Path: utzoo!mnetor!uunet!lll-winken!lll-tis!ames!amdahl!nw From: nw@amdahl.uts.amdahl.com (Neal Weidenhofer) Newsgroups: comp.lang.c Subject: Re: strcpy Message-ID: <27031@amdahl.uts.amdahl.com> Date: 8 Apr 88 01:24:17 GMT References: <725@xyzzy.UUCP> <137@polygen.UUCP> Organization: Amdahl Corporation, Sunnyvale CA Lines: 25 Summary: The relevant paragraph from dpANS In article <137@polygen.UUCP>, pablo@polygen.uucp (Pablo Halpern) writes: > To avoid incorrect inferences from readers, the entry should > be revised to just say that the copy INCLUDES the NUL terminator. > > Pablo Halpern | mit-eddie \ > Polygen Corp. | princeton \ !polygen!pablo (UUCP) > 200 Fifth Ave. | bu-cs / > Waltham, MA 02254 | stellar / In dpANS Section 4.11.2.3 the description is: The |strcpy| function copies the string pointed to by |s2| (including the terminating null character) into the array pointed to by |s1|. If copying takes place between objects that overlap, the behavior is undefined. The opinions expressed above are mine (but I'm willing to share.) Sometimes I live Regards, in the country Neal Weidenhofer Sometimes I live ...{hplabs|ihnp4|ames|decwrl}!amdahl!nw in town Amdahl Corporation Sometimes I take 1250 E. Arques Ave. (M/S 316) a great notion P. O. Box 3470 To jump in the river Sunnyvale, CA 94088-3470 and drown (408)737-5007