NULL ROUTINE POINTERS

Jeffery A. Cavallaro jeff at isi-vaxa.arpa
Thu Nov 28 11:08:34 AEST 1985


After all the talk about null object pointers on machines with non-zero
null addresses, how would you portably define a null routine pointer?:

Assume that the routine returns a short, -
The following don't seem to work:

#define		NULLROUTINE		((short *()) 0)
#define		NULLROUTINE		((short *) 0())

And:

#define		NULLROUTINE		((short *0)())
or
#define		NULLROUTINE		((short)(*0)())

If all of the above make no sense...Then what?

						Jeff



More information about the Comp.lang.c mailing list