Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!uwm.edu!uakari.primate.wisc.edu!gem.mps.ohio-state.edu!usc!apple!agate!shelby!decwrl!megatest!djones From: djones@megatest.UUCP (Dave Jones) Newsgroups: comp.lang.c Subject: 0 and pointers.( Re: Abandon NULL for (0)) Message-ID: <8634@goofy.megatest.UUCP> Date: 6 Oct 89 21:20:16 GMT References: <15571@nswitgould.cs.uts.oz> Organization: Megatest Corporation, San Jose, Ca Lines: 22 By the way, here's a mistake I see quite often. It makes no difference on many machines, but on architectures where casting an integer to a pointer in not a NOP, you are in trouble with this: foo() { char *mem = (char*)malloc(STRLEN); /* etc... */ } Of course you should say, extern char* malloc(); foo() { char *mem = malloc(STRLEN); /* etc. */ }