Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.1 6/24/83; site alice.UUCP
Path: utzoo!watmath!clyde!burl!ulysses!allegra!alice!ark
From: ark@alice.UUCP (Andrew Koenig)
Newsgroups: net.lang.c
Subject: Re: how has C bitten you?
Message-ID: <4170@alice.UUCP>
Date: Sun, 18-Aug-85 11:07:03 EDT
Article-I.D.: alice.4170
Posted: Sun Aug 18 11:07:03 1985
Date-Received: Tue, 20-Aug-85 20:26:22 EDT
References: <228@investor.UUCP>
Organization: Bell Labs, Murray Hill
Lines: 17

> int dial(telno)
> char *telno;
> {
>	if(telno){		/*  should be if(*telno)  */
>		dial it;
>	}
>	else{
>		hang up;
>	}
> }

Bob Pierce says that this program failed because it should have been
checking *telno instead of telno.

If telno is NULL, you had better not look at *telno; it's illegal.
If the address of a legal character item is NULL, your compiler is
not implementing the language properly.