Article View: comp.arch
Article #13402Re: String Handling -- Incompetence of run-time libraries
From: levy
Date: Sun, 05 Apr 1987 03:11
Date: Sun, 05 Apr 1987 03:11
12 lines
1190 bytes
1190 bytes
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--------|
Technical Details
Message-ID:
<1647@ttrdc.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!water!watnot!watmath!clyde!cbatt!ihnp4!cuae2!ltuxa!ttrdc!levyReferences:
<15292@amdcad.UUCP> <978@ames.UUCP> <15694@sun.uucp> <9996@sri-spam.istc.sri.com>Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: arc1-ca.pugleaf.net!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 Summary: what about return value?!?