Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: utzoo!watmath!clyde!floyd!harpo!seismo!hao!hplabs!sri-unix!ron@brl-vgr
From: ron%brl-vgr@sri-unix.UUCP
Newsgroups: net.unix-wizards
Subject: Re:  Please use NULL instead of 0 whenever you have a pointer!
Message-ID: <16022@sri-arpa.UUCP>
Date: Thu, 26-Jan-84 14:15:01 EST
Article-I.D.: sri-arpa.16022
Posted: Thu Jan 26 14:15:01 1984
Date-Received: Sun, 5-Feb-84 13:11:10 EST
Lines: 21

From:      Ron Natalie 

This is wrong if you want to be strict about things:

	execl("/bin/echo", "echo", "hi", "there", 0);

And so is this!

	execl("/bin/echo", "echo", "hi", "there", NULL);

in system V (and most everything else) as NULL really is 0.

You are only guaranteed of being allowed to mix 0 and pointers
in assignment (that's with an equals, not passing to functions)
and comparison.  The correct way is:

	execl("/bin/echo", "echo", "hi", "there", (char *)0);

Because execl's arguments must be character pointers not ints!

-Ron