stricmp

Discussion in 'C++' started by Michael Sgier, Jul 6, 2006.

  1. Hi
    in linux i get the error
    stricmp not found or something like that.
    i only find strcmp in /usr/include
    what is the difference? can i use that? or what do i need to do with
    the above error?
    Thanks
    Michael
    Michael Sgier, Jul 6, 2006
    #1
    1. Advertising

  2. Michael Sgier wrote:
    > in linux i get the error
    > stricmp not found or something like that.


    There is no such standard function.

    > i only find strcmp in /usr/include
    > what is the difference?


    'strcmp' is a standard function, 'stricmp' is not.

    > can i use that? or what do i need to do with
    > the above error?


    You need to implement it yourself or use some other function
    that can work as a replacement.

    V
    --
    Please remove capital 'A's when replying by e-mail
    I do not respond to top-posted replies, please don't ask
    Victor Bazarov, Jul 6, 2006
    #2
    1. Advertising

  3. Try using strcasecmp() instead of stricmp() and see if that solves your
    problem.
    -wls
    Walt Stoneburner, Jul 7, 2006
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. William  Krick

    comparing two strcasecmp (stricmp) implementations

    William Krick, Nov 10, 2005, in forum: C Programming
    Replies:
    88
    Views:
    2,579
  2. jamihuq
    Replies:
    18
    Views:
    1,725
  3. xuatla
    Replies:
    11
    Views:
    740
    Robbie Hatley
    Sep 26, 2005
  4. ahso
    Replies:
    4
    Views:
    4,301
    BGB / cr88192
    Nov 25, 2009
  5. Lynn McGuire
    Replies:
    11
    Views:
    500
    James Kanze
    Apr 30, 2013
Loading...

Share This Page