TIP: Click on subject to list as thread! ANSI
echo: c_plusplus
to: AARON C HELWIG
from: CHRISTIAN FELDE
date: 1998-01-04 20:41:00
subject: Re: strcmpi error?

CF>> Hi all...
CF>>
CF>> I have a problem here. I use Linux as my main OS, and therefor do all my
c+
CF>> codeing in Linux too. I'm now using "Instant C++ Programming" by Ian 
Wilks
CF>> learn c++, and in a program made after reading from that book, I shall 
use
CF>> strcmpi().
CF>>
CF>> The source code look like this:
CF>>   if (strcmpi(input, yes) == 0)
CF>>     cout << response1;
CF>>   else
CF>>     if (strcmpi(input, no) == 0)
CF>>       cout << response2;
>    I changed both instances of strcmpi with strcmp and it compiled just
>fine..
But strcmpi and strcmp isn't the same thing!
strcmp is case sensitive, strcmpi is NOT!
         __ __ __ __ _  _
        /_ // / // ///\//      email: scooby@applausenett.no
_ _ __ __//_ /_//_//_///    homepage: http://www.applausenett.no/~scooby/
--- BBBS/L v3.33 How
---------------
* Origin: Fluxpod Information eXchange, telnet://fix.no (2:210/30)

SOURCE: echomail via exec-pc

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