The strlwr and strupr functions convert ASCIIZ strings to all upper case or all lower case. Non-alphabetic characters in the string are not affected.
These functions are used to convert ASCIIZ strings to all upper case or all lower case.
char * strlwr ( char * S );
char * strupr ( char * S );
/************************************************
* File: convert.cpp
* Description: Short program showihg case
* conversion functions.
* Date: 11/12/08
************************************************/
#include <iostream.h>
#include <string.h>
int main () {
char Hello [] = "Hello";
char * Lower;
cout << "The initial string is: " << Hello << "\n";
strupr (Hello);
cout << "The upper case string is: " << Hello << "\n";
Lower = strlwr (Hello);
cout << "The lower case string is: " << Lower << "\n";
return 0;
}