TIP: Click on subject to list as thread! ANSI
echo: cis.languages
to: SCOTT HOWELL 70270,641 (X)
from: James Jones 76257,562
date: 1990-06-26 21:33:44
subject: #4656-thanks to all

#: 4668 S3/Languages
    26-Jun-90  21:33:44
Sb: #4656-thanks to all
Fm: James Jones 76257,562
To: SCOTT HOWELL 70270,641 (X)

Be careful.  Two things: (1) strcmp expects to be handed *pointers* to
characters, and those pointers had better point to NUL-terminated strings, so
that even if you changed that to strcmp("q", &ch), it might not do what you
want. (2) strcmp() is documented to return a negative number if the first
string is less than the second, zero if the first string is equal to the
second, and a positive number if the first string is greater than the second. 
It always pays to read the documentation.

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™.