integer and long max/min values

Christopher Vance vance at aurema.com
Thu Nov 20 20:51:06 PST 2003


On Thu, Nov 20, 2003 at 10:39:05PM -0600, 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?

Wrong mailing list - if you don't already know really basic C, you
ain't a hacker.

Try <limits.h>.

-- 
Christopher Vance


More information about the freebsd-hackers mailing list