Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!think.com!spool.mu.edu!uunet!kithrup!sef From: sef@kithrup.COM (Sean Eric Fagan) Newsgroups: comp.std.c Subject: Re: gcc and NULL function pointers. Message-ID: <1991Jun10.061202.25199@kithrup.COM> Date: 10 Jun 91 06:12:02 GMT Article-I.D.: kithrup.1991Jun10.061202.25199 References: <16386@ganymede.inmos.co.uk> <1991Jun4.012914.25418@tkou02.enet.dec.com> <4641@inews.intel.com> Organization: Kithrup Enterprises, Ltd. Lines: 26 In article <4641@inews.intel.com> bhoughto@pima.intel.com (Blair P. Houghton) writes: >Better, su to root and erase the `(void *)' part. The most >general, and therefore most valuable, way to define NULL is >to simply map it to the digit 0. This does not handle the case where a prototype is not in scope. E.g. void foo() { bar(NULL); } void bar(char *b) { if (NULL == b) { ... } else { ... } } -- Sean Eric Fagan | "I made the universe, but please don't blame me for it; sef@kithrup.COM | I had a bellyache at the time." -----------------+ -- The Turtle (Stephen King, _It_) Any opinions expressed are my own, and generally unpopular with others.