Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!sdd.hp.com!uakari.primate.wisc.edu!aplcen!haven!adm!smoke!gwyn From: gwyn@smoke.brl.mil (Doug Gwyn) Newsgroups: comp.lang.c Subject: Re: 10 commandments and the NULL pointer? Message-ID: <14404@smoke.brl.mil> Date: 9 Nov 90 07:28:49 GMT References: <2390@krafla.rhi.hi.is> Organization: U.S. Army Ballistic Research Laboratory, APG, MD. Lines: 7 In article <2390@krafla.rhi.hi.is> einari@rhi.hi.is (Einar Indridason) writes: > x = do_something(NULL, NULL, NULL); > /* is ^^^^ ^^^^ ^^^^ this right or should I write: */ > x = do_something( (int *)NULL, (double *)NULL, (char *)NULL ); Use the latter. The former might or might not work, depending on system details.