Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!samsung!uunet!crdgw1!crdos1!davidsen From: davidsen@crdos1.crd.ge.COM (Wm E Davidsen Jr) Newsgroups: comp.lang.c Subject: Re: compare strings, strcmp Keywords: strcmp,strings Message-ID: <1638@crdos1.crd.ge.COM> Date: 17 Nov 89 18:55:30 GMT References: <4463@blake.acs.washington.edu> <11605@smoke.BRL.MIL> <308@charyb.COM> <1632@crdos1.crd.ge.COM> <11623@smoke.BRL.MIL> Reply-To: davidsen@crdos1.UUCP (bill davidsen) Organization: GE Corp R&D Center, Schenectady NY Lines: 20 In article <11623@smoke.BRL.MIL> gwyn@brl.arpa (Doug Gwyn) writes: | In article <1632@crdos1.crd.ge.COM> davidsen@crdos1.UUCP (bill davidsen) writes: | > I can only speculate, but strcmp can give memory faults if the string | >is not properly terminated. | | It also could fail if fed a banana cream pie. | | Why speculate when you don't know? Good grief! I tried to be helpful and offered one case in which the macro could be "unsafe," and you have to make a nasty comment. I didn't even comment on how uninformative the comment really was, or anything. Improperly terminated strings are fairly common, while pies are a feature of C--. -- bill davidsen (davidsen@crdos1.crd.GE.COM -or- uunet!crdgw1!crdos1!davidsen) "The world is filled with fools. They blindly follow their so-called 'reason' in the face of the church and common sense. Any fool can see that the world is flat!" - anon