Linux-Hams archive - July 1998: Re: sizeof()

Re: sizeof()

Kai Schulte (ohre.kuiz@eurofoto.no)
Mon, 6 Jul 1998 14:33:15 +0200 (MESZ)


Mike Bilow wrote:

> In general, it is
> considered good practice to avoid writing any code which depends upon the
> underlying implementation size of "int" or any other data type.

Does that mean "never use more than the low 16 bits (or maybe even 8) of
an integer" or rather "never use the type int at all"?

Kai, who would rather use #ifdefs if the program has to be portable rather
than waste memory by default