Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!usc!ucsd!ucbvax!ANDREW.CMU.EDU!gk5g+ From: gk5g+@ANDREW.CMU.EDU (Gary Keim) Newsgroups: comp.soft-sys.andrew Subject: Re: ULstrncmp Message-ID: Date: 30 Oct 90 19:51:27 GMT References: Sender: daemon@ucbvax.BERKELEY.EDU Organization: The Internet Lines: 12 Excerpts from misc: 30-Oct-90 Re: ULstrncmp Craig F. Everhart (719+0) > In my copy of the code, ULstrcmp(s1, s2) ultimately returns (s1 - s2), > while both ULstrncmp(s1, s2, len) and strnicmp(s1, s2, len) ultimately > return (s2 - s1), even though the comment in ULstrncmp says that it > returns (s1 - s2). ULstrncmp and strnicmp both returned the wrong value (s2 - s1). In the next patch, strnicmp is gone and ULstrncmp returns (s1 - s2). As well, the call in cui.c that relied on the incorrect return value from strnicmp has been changed to rely on the correct return value from ULstrncmp.