Date: Tue, 02 Nov 1999 08:15:48 +0100 From: Michael Schuster - TSC SunOS Germany <michael.schuster@germany.sun.com> To: Terry Lambert <tlambert@primenet.com>, freebsd-arch@freebsd.org Subject: Re: stpcpy() Message-ID: <381E8FA4.CF60DD7D@germany.sun.com> References: <199911011936.MAA29291@usr02.primenet.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Terry Lambert wrote: > > I really think 99% of the programs using stpcpy() for "speed" reasons > > would spend 99% of their time elsewhere if p=strchr(strcpy(d,s), '\0'); > > were used. > > I believe the point is to iterate the string once, instead of twice, > without having to learn how to use pointers yourself. I have to contradict you here: I do not believe that C is the right language to use if you're not prepared to learn about pointers _in_depth_. This may be lamentable, but it's a fact. Iterating a string only once, instead of twice, is a different point, one I'd be prepared to concede. > Terry Lambert > terry@lambert.org cheers Michael -- Michael Schuster / Michael.Schuster@germany.sun.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?381E8FA4.CF60DD7D>