Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: utzoo!mnetor!uunet!seismo!gatech!bloom-beacon!oberon!cit-vax!elroy!ames!amdcad!sun!imagen!auspyr!mick
From: mick@auspyr.UUCP (Mick Andrew)
Newsgroups: comp.lang.c
Subject: Re: STREQ
Message-ID: <7312@auspyr.UUCP>
Date: Fri, 10-Jul-87 11:39:52 EDT
Article-I.D.: auspyr.7312
Posted: Fri Jul 10 11:39:52 1987
Date-Received: Sun, 12-Jul-87 14:11:30 EDT
References: <8277@utzoo.UUCP>
Organization: Austec, Inc., San Jose, CA. USA
Lines: 14

in article <8277@utzoo.UUCP>, henry@utzoo.UUCP (Henry Spencer) says:
> 
>> >>#define    STREQ(a, b)    (*(a) == *(b) && strcmp((a), (b)) == 0)
>> 

This fine idea must be used with caution.

Note that strcmp() and its siblings correctly handle the case
of null pointers....
-- 
----
Mick    Austec, Inc.,   San Jose, CA 
	{sdencore,necntc,cbosgd,amdahl,ptsfa,dana}!aussjo!mick
	{styx,imagen,dlb,gould,sci,altnet}!auspyr!mick