Path: utzoo!utgpu!watmath!att!chinet!les From: les@chinet.chi.il.us (Leslie Mikesell) Newsgroups: comp.lang.c Subject: Re: Invalid Pointers Message-ID: <8990@chinet.chi.il.us> Date: 18 Jul 89 03:55:55 GMT References: <20245@adm.BRL.MIL> <4348@eos.UUCP> <10541@smoke.BRL.MIL> Reply-To: les@chinet.chi.il.us (Leslie Mikesell) Organization: Chinet - Public Access Unix Lines: 12 In article <10541@smoke.BRL.MIL> gwyn@brl.arpa (Doug Gwyn) writes: >-#define NO_FOOBAR ((struct foobar *) -1 ) is what I use, but... >This is not portable. Just use NULL. Do you mean that there are machines that might return a valid -1 from sbrk(2) or shmat(2), or that would misconstrue the comparsion of a pointer to -1? Yes, I know these are botches, but are they not always accomodated? Les Mikesell