Messages in this thread | | | Date | Tue, 16 Feb 1999 20:36:42 -0500 | From | Michael Meissner <> | Subject | Re: Q: void* vs. unsigned long (fwd) |
| |
On Tue, Feb 16, 1999 at 11:29:49PM +0000, Francois Desarmenien 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
Nope from a purely C viewpoint those are wrong, and quoted text is right (though long long is not in the current standard). Obviously, a Linux environment can be more restrictive and say char is 8 bits.
-- Michael Meissner, Cygnus Solutions (Massachusetts office) 4th floor, 955 Massachusetts Avenue, Cambridge, MA 02139, USA meissner@cygnus.com, 617-354-5416 (office), 617-354-7161 (fax)
- 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/
| |