Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!munnari.oz.au!brolga!bunyip.cc.uq.oz.au!zeus!s64421 From: s64421@zeus.usq.EDU.AU (house ron) Newsgroups: comp.lang.c Subject: Re: An Ubiquitous C bug Message-ID: Date: 24 Jan 91 12:18:42 GMT References: <1991Jan21.083106.7297@tkou02.enet.dec.com> <2831@casbah.acns.nwu.edu> <851@csource.oz.au> Lines: 17 david@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@zeus.usq.edu.au) (By post: Info Tech, U.C.S.Q. Toowoomba. Australia. 4350)