Results 1 to 2 of 2

Thread: Easy string conversion (strlwr)

  1. #1

    Thread Starter
    New Member
    Join Date
    Jun 2000
    Posts
    1
    How do you convert string from upper to lower or from lower to upper or whatever other conversion of that type you need to do. I tried using strlwr, but I'm so dumb that I can't get it to work (it's hard to move from VB to VC++, but unfortunately you have to do it sooner or later - well maybe not completely forget about VB, but... whatever)
    Thanks in advance
    Visual Studio 6.0 Enterprise Ed.

  2. #2
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    try this:

    Code:
    void myfunc() {
        char* pcMyStr = "Here Is Some TEXT!";
    
        strlwr(pcMyStr);
    
        // pcMyStr is now "here is some text!"
    
        printf("%s", pcMyStr);
    }

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width