This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Unomitted frame pointers
- From: Andreas Schwab <schwab at suse dot de>
- To: "Dave Korn" <dave dot korn at artimi dot com>
- Cc: "'jlh'" <jlh at gmx dot ch>, "'Thomas R. Truscott'" <trt at cs dot duke dot edu>,<gcc at gcc dot gnu dot org>
- Date: Fri, 10 Dec 2004 17:33:20 +0100
- Subject: Re: Unomitted frame pointers
- References: <NUTMEGeAzdfTVSxzW2300000613@NUTMEG.CAM.ARTIMI.COM>
"Dave Korn" <dave.korn@artimi.com> writes:
> So really the safe way to code this is
>
> #define HELLOSTRING "Hello World!\n"
>
> write (2, HELLOSTRING, strlen(HELLOSTRING)-1);
No, it's
write (2, HELLOSTRING, strlen(HELLOSTRING));
Andreas.
--
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."