Messages in this thread | | | Date | Tue, 16 Feb 1999 20:56:24 -0500 | From | Arvind Sankar <> | Subject | Re: Q: void* vs. unsigned long (fwd) |
| |
On Tue, Feb 16, 1999 at 11:29:49PM +0000, Francois Desarmenien wrote: > John Cochran wrote: > > The 1st bullet indicates that rank is independant of representation and if > > you look at the definitions within <limits.h> (5.2.4.2.1) you'll see that > > signed char is at least 8 bits long > > short int is at least 16 bits long > > int is at least 16 bits long > > long is at least 32 bits long > > long long is at least 64 bits long > > > > That's not exactly the definitions I've learnt: > > It should be assumed that: > > char *is* 8 bits > short int *is* 16 bits > int is the size of int nativly handled by your CPU: can be anything > long *is* 32 bits > long long *is* 64 bits > > > Tell me if I made a mistake > > François Désarménien
Yes. The standard is right. On a 64-bit machine, you want long to be 64 bits.
-- arvind
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/
| |