integer types, sys calls, and stdio
Guy Harris
guy at rlgvax.UUCP
Mon Jan 21 07:42:34 AEST 1985
> > One final recourse for us would be to admit defeat, change "long"
> > to 36-bits, and hack in a "long long" type for 72-bit integers.
>
> Please DO! The definition of C calls for *two* lengths of integers:
> "short int" and "long int". "int" alone may be defined as one or the
> other.
Actually, the C reference manual calls for up to *three* lengths of integers:
"short int", "int", and "long int"; any of them may be equivalent to the
other as long as sizeof(short int) <= sizeof(int) <= sizeof(long int).
In practice, it may cause problems if "int" isn't the same as any of the other
two, but that's because of historical practice, not because of the
"specification" of the language.
Guy Harris
{seismo,ihnp4,allegra}!rlgvax!guy
More information about the Comp.unix.wizards
mailing list