Re: [Off-Topic] int/long/short 98 08:38:25 pm

From: Andrew Helm (ashe@IGLOU.COM)
Date: 09/05/98

Sat, 5 Sep 1998, I Chose No Name wrote:
> okay, sorry for the totally unrelated topic, but what's the ranges for long,
> int, short, etc?
> like int goes from -x to x, and unsigned is like 0 - 2x or something like
> that, but i'm not sure what the ranges are, and i wanted to minimize the
> memory of some structs i'm adding...thanks in advance

Erm... yeah, it's extremely off topic. Looking it up in a c book or
even posting to comp.lang.c would be much more appropriate.

Anyways... look for limits.h wherever your compiler stores it's
header files. It should have all the answers you're looking for,
but beware that those value can vary from platform to platform.

ObBook: The C Programming language by Kernighan and Ritchie :)

     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | |

This archive was generated by hypermail 2b30 : 12/15/00 PST