On Fri, 5 May 2000, Ken Gosier wrote:

> 
> --- Steve Borho <[EMAIL PROTECTED]> wrote:
> > Speaking to just pure style, though, that while loop
> > reminds me of the
> > most efficient C snippet I've ever seen.  It's the
> > standard implementation
> > of strcpy.
> > 
> >     for (;*s;)
> >       *d++ = *s++;
> 
> 
> One question about this code snippet: Won't it fail to copy
> the terminating '\0' into the target string?

while (*d++ = *s++) ;

  or something to that effect, as i recall.

rday


-- 
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.

Reply via email to