TIP: Click on subject to list as thread! ANSI
echo: cis.languages
to: SCOTT HOWELL 70270,641 (X)
from: Pete Lyall 76703,4230
date: 1990-06-26 19:09:26
subject: #4656-thanks to all

#: 4662 S3/Languages
    26-Jun-90  19:09:26
Sb: #4656-thanks to all
Fm: Pete Lyall 76703,4230
To: SCOTT HOWELL 70270,641 (X)

Scott -

It doesn't return a FALSE, per se. It returns a difference of 0. If the
characters mismatch at some point, it'll return a positive if the difference
was positive, and the same for negative.

For clarity, some people like to declare a MACRO to take care of the logic:

 #define STREQ(x,y) (strcmp(x,y) == 0)

This way, you could use:

    if STREQ(onestring, theotherstring)
      blah_blah(blah);

Pete

SOURCE: compuserve via textfiles.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.