Path: utzoo!utgpu!water!watmath!clyde!rutgers!soleil!geigel From: geigel@soleil.UUCP (Joe Geigel) Newsgroups: comp.lang.c Subject: Is NULL == 0 always true? Keywords: NULL, Message-ID: <134@soleil.UUCP> Date: 7 Jan 88 22:19:22 GMT Organization: GE Solid State, Somerville, NJ Lines: 22 I have a question for you all. Is NULL always equivalent to the value 0? I know it is in many implementations of C but is it always defined to be so? The reason being is that a friend of mine was using the following in a routine of his: if (ptr = strchr (str,'\')) { . . . } I argued that although this may work in the C we are using (VAX-C), it may not be totally portable to other systems. I am correct in saying this? Any words of wisdom would be appriciated. Thanks. -- jogle ...!rutgers!soleil!geigel jmg%smvl.decnet@GE-CRD.arpa