Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!swrinde!cs.utexas.edu!yale!cmcl2!adm!smoke!gwyn From: gwyn@smoke.brl.mil (Doug Gwyn) Newsgroups: comp.lang.c Subject: Re: Efficient STRing CoMPares? Message-ID: <15510@smoke.brl.mil> Date: 19 Mar 91 02:02:11 GMT References: <1193@caslon.cs.arizona.edu> <15496@smoke.brl.mil> <1991Mar18.174207.7377@bingvaxu.cc.binghamton.edu> Organization: U.S. Army Ballistic Research Laboratory, APG, MD. Lines: 9 In article <1991Mar18.174207.7377@bingvaxu.cc.binghamton.edu> consp06@bingsuns.cc.binghamton.edu (Robert Konigsberg) writes: >Wouldn't it be good then, to include in the macro, something to compare >the actual POINTERS? If the pointers are the same then the two strings >have no CHOICE but to be equivelant. Nice try, but in the vast majority of applications the strings being compared, even in cases where they match, are contained in different storage locations. E.g. if ( StrEq( buffer, "EOF" ) ) ...