From: utzoo!decvax!harpo!seismo!rlgvax!guy Newsgroups: net.lang.c Title: Re: Bellybutton lint Article-I.D.: rlgvax.326 Posted: Sun Apr 24 00:15:18 1983 Received: Mon Apr 25 06:08:52 1983 References: ucf-cs.922 If it were defined that way, if you had a routine "foo": foo(bar) int *bar; { if (bar == NULL) do one thing; else do another; } and you wanted to call "foo" with a null pointer, you would either have to say foo((int *)0); or say foo(NULL); in which case "lint" would bitch that you were passing a "char *" to a routine that expected an "int *", or say foo((int *)NULL); in which case "lint" would bitch that you were trying to convert a "char *" to an "int *" which is a Bozo No-No. Trouble is there *is* no such thing as a "null pointer" in C; there is a null character pointer, and a null int pointer, and a null struct proc pointer, and a null int() pointer, and... Guy Harris RLG Corporation {seismo,mcnc,we13}!rlgvax!guy