Date: Mon, 21 Apr 1997 22:39:50 -0700 From: John-Mark Gurney <jmg@hydrogen.nike.efn.org> To: Adrian Chadd <adrian@staff.psinet.net.au> Cc: Chuck Robey <chuckr@mat.net>, freebsd-hackers@freebsd.org Subject: Re: 64 bit number definitions? Message-ID: <19970421223950.65080@hydrogen.nike.efn.org> In-Reply-To: <Pine.LNX.3.93.970422122139.10533A-100000@staff.psinet.net.au>; from Adrian Chadd on Tue, Apr 22, 1997 at 12:23:28PM %2B0800 References: <Pine.BSF.3.91.970422001259.4630H-100000@Journey2.mat.net> <Pine.LNX.3.93.970422122139.10533A-100000@staff.psinet.net.au>
next in thread | previous in thread | raw e-mail | index | archive | help
Adrian Chadd scribbled this message on Apr 22: > > [snip] > > > > > I've recently (for a class) been forced to code under dos, so I think I > > know where your size guesses are coming from, but they're in error. Run > > the following program: [program deleted] > > which has output "sizeof int is 4, long 4, and quad 8" > > Interesting... could it be due to alignment? nope.. they are really that size... #include <sys/types.h> #include <limits.h> #include <stdio.h> void main() { printf("int max: %d, uint max: %u, quad max: %qd, long max: %d\n", INT_MAX, UINT_MAX, QUAD_MAX, LONG_MAX); } int max: 2147483647, uint max: 4294967295, quad max: 9223372036854775807, long max: 2147483647 -- John-Mark Cu Networking Modem/FAX: +1 541 683 6954 Live in Peace, destroy Micro$oft, support free software, run FreeBSD
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19970421223950.65080>