How do a write portable programs?

Richard A. O'Keefe ok at quintus.uucp
Fri Sep 9 21:13:59 AEST 1988


In article <2515 at ingr.UUCP> jones at ingr.UUCP (Mark Jones) writes:
>Instead of using NULL, use ZERO, and don't worry about casting it.

This is a joke, right?  Yes, it works for assignment to variables,
but it is _not_ good for passing to functions without prototypes!

>Do not rely on the size of anything.  If there is a need for a 32-bit
>number, do it like this:
>
>#if sizeof(int) == 4

Now I *know* it's a joke!  "sizeof" is not legal in #if.  



More information about the Comp.lang.c mailing list