Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site alice.UUCP Path: utzoo!watmath!clyde!burl!ulysses!allegra!alice!ark From: ark@alice.UUCP (Andrew Koenig) Newsgroups: net.lang.c Subject: Re: String copy idiom. Message-ID: <3448@alice.UUCP> Date: Fri, 8-Mar-85 17:35:59 EST Article-I.D.: alice.3448 Posted: Fri Mar 8 17:35:59 1985 Date-Received: Sun, 10-Mar-85 04:58:21 EST References: <7044@watdaisy.UUCP> Organization: Bell Labs, Murray Hill Lines: 9 If s and t are char pointers in registers, while (*s++ = *t++) ; generates the best code I could possibly imagine. while ((*s = *t) != '\0') {s++; t++;} is considerably worse. Try it with register variables on your compiler.