Thread: strupr function

  1. #1
    Registered User
    Join Date
    Nov 2001

    Question strupr function

    i'm doing a project on the function strupr, its found on one of the borland compilers. it takes word(s) entered by the user in lowercase letters and switches it to uppercase. my question is, what's the purpose of the function? where can it come in use...

  2. #2
    geek SilentStrike's Avatar
    Join Date
    Aug 2001
    If you want to compare strings but don't care about their case, you can use strupr on both of them and then compare them.
    Prove you can code in C++ or C# at TopCoder, referrer rrenaud
    Read my livejournal

  3. #3
    Registered User
    Join Date
    Aug 2001
    One use might be in searching or sorting. You can look for just one "WORD", instead of "WORD", "word", "Word", etc.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Seg Fault in Compare Function
    By tytelizgal in forum C Programming
    Replies: 1
    Last Post: 10-25-2008, 03:06 PM
  2. Another syntax error
    By caldeira in forum C Programming
    Replies: 31
    Last Post: 09-05-2008, 01:01 AM
  3. In over my head
    By Shelnutt2 in forum C Programming
    Replies: 1
    Last Post: 07-08-2008, 06:54 PM
  4. Including lib in a lib
    By bibiteinfo in forum C++ Programming
    Replies: 0
    Last Post: 02-07-2006, 02:28 PM
  5. Question..
    By pode in forum Windows Programming
    Replies: 12
    Last Post: 12-19-2004, 07:05 PM