Date: Fri, 21 Nov 2003 10:16:39 -0500 From: Richard Coleman <richardcoleman@mindspring.com> To: Jay Sern Liew <liew@jaysern.org> Cc: freebsd-hackers@freebsd.org Subject: Re: integer and long max/min values Message-ID: <3FBE2C57.6070200@mindspring.com> In-Reply-To: <20031120223816.G61303@pinnacle.schulte.org> References: <20031120223816.G61303@pinnacle.schulte.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Jay Sern Liew wrote: > how do I find out the maximum (and minimum) value a long and int will hold > in C? (before it overflows or underflows) > > if it's compiler-dependent, then does anyone know where I can find the GCC > documentation for stuff like that? It will be architecture dependent (32 or 64 bit machines?). I doubt the GCC docs talk about this. You might check Richard Steven's book on "Advanced Unix Programming". It covers lots of information about standard machine limits and how to discover them. Richard Coleman richardcoleman@mindspring.com
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3FBE2C57.6070200>