I’m running Linux and frequently find myself wondering what the storage sizes and numeric ranges are for the basic data types (signed/unsigned char, signed/unsigned long, signed/unsigned long double, et cetera).
I’m hoping there’s a little command line program which prints all this, though, if not, I realize that I could build it. (The ascii command, for instance, is very useful for a similar purpose.)
You could just vim through
limits.h. For instance, on my machine it starts with:Or if you feel you need a separate program, build one that simply prints things like:
CHAR_BIT,SCHAR_MINetc.