Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!snorkelwacker.mit.edu!paperboy!hsdndev!cmcl2!kramden.acf.nyu.edu!brnstnd From: brnstnd@kramden.acf.nyu.edu (Dan Bernstein) Newsgroups: comp.lang.c Subject: Re: One more point regarding = and == (more flamage) Message-ID: <7318:Mar2622:58:0391@kramden.acf.nyu.edu> Date: 26 Mar 91 22:58:03 GMT References: <925@isgtec.UUCP> <1991Mar26.180311.29125@rlgvax.Reston.ICL.COM> Organization: IR Lines: 13 In article <1991Mar26.180311.29125@rlgvax.Reston.ICL.COM> scc@rlgvax.OPCR.ICL.COM (Stephen Carlson) writes: > while (*s++ == *t++) > ; > is not well set up to compare two arrays. Actually, sentinels are among the fastest ways to do a linear search without wasting noticeable extra space. > Statement (b) is suspicious, rare, and useless. You are exaggerating. ---Dan