how do I do "this or that" with strcmpi

This is a discussion on how do I do "this or that" with strcmpi within the C++ Programming forums, part of the General Programming Boards category; wow!......

  1. #16
    Registered User
    Join Date
    Dec 2001
    Posts
    479
    wow!...

  2. #17
    I lurk
    Join Date
    Aug 2002
    Posts
    1,361
    Having the ! there is no different... strcmp returns 0 when strings are equal.

  3. #18
    Cheesy Poofs! PJYelton's Avatar
    Join Date
    Sep 2002
    Location
    Boulder
    Posts
    1,728
    It does?? LOL, so then thats my problem! I never use strcmp, but I assumed (and am confused as to why it doesn't) that if they were equal it would return true, not false!

    My bad! <shrinks into the shadows...>

Page 2 of 2 FirstFirst 12
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. alternative to strcmpi
    By ehj3000 in forum C Programming
    Replies: 6
    Last Post: 12-12-2005, 06:09 PM
  2. HELP with strlen and strcmpi
    By unejam2005 in forum C++ Programming
    Replies: 2
    Last Post: 12-11-2005, 02:01 AM
  3. basic strcmpi question
    By Noobie in forum C++ Programming
    Replies: 3
    Last Post: 05-04-2003, 02:50 PM
  4. strcmpi()
    By Sicilian in forum C++ Programming
    Replies: 4
    Last Post: 04-04-2002, 01:19 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21