From: Ullrich von Bassewitz (uz_at_musoftware.de)
Date: 1999-07-12 08:54:09
> yeah... ofcoz i ment int... and well, i have read quite some stuff about > C > lately, and i remember that there were certain problems with int and it > should be replaced by some other datatype. i think the major problem > was, > that the amount of bits in an int is not defined (in opossite to > short/long) > so you may get some probs when porting the code. There is no data type in C with a specific size. The standard defines minimum sizes: 16 bit for int and short 32 bit for long This is all, a portable program can rely on. BTW: The standard does not even say anything about the size of a char. Having a 13 bit sized char would be completely legal. I'm writing a lot of software in C for a machine that has 32 bit chars, 32 bit shorts, ints and longs, even all floating point types are 32 bit. You learn a lot about portability on such a machine:-) Regards Uz -- Ullrich von Bassewitz uz_at_musoftware.de ---------------------------------------------------------------------- To unsubscribe from the list send mail to majordomo_at_musoftware.de with the string "unsubscribe cc65" in the body(!) of the mail.
This archive was generated by hypermail 2.1.3 : 2001-12-14 22:05:44 CET