An Ubiquitous C bug
house ron
s64421 at zeus.usq.EDU.AU
Thu Jan 24 23:18:42 AEST 1991
david at csource.oz.au (david nugent) writes:
>It, or an equivant, could be.
># define NULLFUNC (int (*)()-1)
I tried something like this using TopSpeed C, but I had to write a
separate one for each type of function pointer, whereas NULL, if only
it worked, works for all function types. I tried using variations
on void *, but it took that as meaning the function returned a
void result, instead of meaning "any type of function".
--
Regards,
Ron House. (s64421 at zeus.usq.edu.au)
(By post: Info Tech, U.C.S.Q. Toowoomba. Australia. 4350)
More information about the Comp.lang.c
mailing list