stricmp() versus strcasecmp(

Discussion in 'C++' started by ahso, Nov 25, 2009.

  1. ahso

    ahso Guest

    Hi
    i've several functions like:

    if (stricmp (p, ".PBM") == 0) {

    How should i convert them for Linux?
    Many thanks
    Michael Sgier
     
    ahso, Nov 25, 2009
    #1
    1. Advertising

  2. Vladimir Jovic, Nov 25, 2009
    #2
    1. Advertising

  3. ahso

    ahso Guest

    Many thanks now I've something similar:

    //---Convert texture name in upper case --Compute texture type
    ------
    _strupr_s(tn,TC_TEXTURE_NAME_DIM);

    strupr....on Linux?
    Many thanks again
    Michael
     
    ahso, Nov 25, 2009
    #3
  4. Vladimir Jovic, Nov 25, 2009
    #4
  5. "ahso" <> wrote in message
    news:...
    > Hi
    > i've several functions like:
    >
    > if (stricmp (p, ".PBM") == 0) {
    >
    > How should i convert them for Linux?


    common ways:
    write your own;
    use macros to replace between stricmp and strcasecmp as needed...


    > Many thanks
    > Michael Sgier
     
    BGB / cr88192, Nov 25, 2009
    #5
    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,642
  2. jamihuq
    Replies:
    18
    Views:
    1,743
  3. xuatla
    Replies:
    11
    Views:
    753
    Robbie Hatley
    Sep 26, 2005
  4. Michael Sgier

    stricmp

    Michael Sgier, Jul 6, 2006, in forum: C++
    Replies:
    2
    Views:
    640
    Walt Stoneburner
    Jul 7, 2006
  5. Paul Butcher
    Replies:
    12
    Views:
    740
    Gary Wright
    Nov 28, 2007
Loading...

Share This Page