Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!zephyr.ens.tek.com!uw-beaver!cornell!batcomputer!rpi!uupsi!cmcl2!panix!yanek From: yanek@panix.uucp (Yanek Martinson) Newsgroups: comp.lang.c Subject: Re: strcmp Message-ID: <1991Jun18.074029.12226@panix.uucp> Date: 18 Jun 91 07:40:29 GMT References: <2695@m1.cs.man.ac.uk> Organization: PANIX Public Access Unix, NYC Lines: 4 For intcmp(a,b) why not just use a-b ? That will tell you if they are equal and if not, which is greater. For strcmp(s,t): while(*s++==*t++&&*s&&*t); return *s-*t;