Date: Sat, 16 Jun 2001 14:21:58 -0400 (EDT) From: Garrett Wollman <wollman@khavrinen.lcs.mit.edu> To: Jonathan Lemon <jlemon@flugsvamp.com> Cc: Jonathan Lemon <jlemon@FreeBSD.org>, cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/usr.sbin/rarpd rarpd.c Message-ID: <200106161821.OAA38884@khavrinen.lcs.mit.edu> In-Reply-To: <20010616110940.G68883@prism.flugsvamp.com> References: <200106160640.f5G6e4J30312@freefall.freebsd.org> <20010616180611.B1956@ringworld.oblivion.bg> <20010616110940.G68883@prism.flugsvamp.com>
next in thread | previous in thread | raw e-mail | index | archive | help
<<On Sat, 16 Jun 2001 11:09:40 -0500, Jonathan Lemon <jlemon@flugsvamp.com> said: > Yes - sizeof() appears to be a 'long int' on the alpha, but an 'int' > on the i386. The correct way to print the result of the `sizeof' operator using `printf()' in C89 is with the `%lu' format (and the argument cast to `unsigned long'), and in C99 is with the `%ju' format (and the argument cast to `uintmax_t'). This is true always, on every architecture, and has been true since C89 introduced size_t to begin with. -GAWollman -- Garrett A. Wollman | O Siem / We are all family / O Siem / We're all the same wollman@lcs.mit.edu | O Siem / The fires of freedom Opinions not those of| Dance in the burning flame MIT, LCS, CRS, or NSA| - Susan Aglukark and Chad Irschick To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200106161821.OAA38884>