Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watnot!watmath!clyde!cbatt!ihnp4!cuae2!ltuxa!ttrdc!levy From: levy@ttrdc.UUCP Newsgroups: comp.arch,comp.lang.c Subject: Re: String Handling -- Incompetence of run-time libraries Message-ID: <1647@ttrdc.UUCP> Date: Sat, 4-Apr-87 22:11:48 EST Article-I.D.: ttrdc.1647 Posted: Sat Apr 4 22:11:48 1987 Date-Received: Sun, 5-Apr-87 19:49:59 EST References: <15292@amdcad.UUCP> <978@ames.UUCP> <15694@sun.uucp> <9996@sri-spam.istc.sri.com> Sender: netnews@ttrdc.UUCP Organization: AT&T, Skokie, IL Lines: 12 Keywords: instruction set architectures, strcpy Xref: utgpu comp.arch:778 comp.lang.c:1470 Summary: what about return value?!? In the discussion about strcpy, nobody has noticed that strcpy is SUPPOSED TO RETURN THE FIRST POINTER PASSED TO IT. This is one reason why the library version is "slower" than void strcpy(s1,s2) register char *s1,*s2; { while (*s1++ = *s2++); } -- |------------dan levy------------| Path: ..!{akgua,homxb,ihnp4,ltuxa,mvuxa, | an engihacker @ | vax135}!ttrdc!ttrda!levy | at&t computer systems division | Disclaimer: try datclaimer. |--------skokie, illinois--------|