#include <lcstring.h> char *strupr(char *str);
strupr
converts lowercase alphabetic characters ('a' through 'z') in the input
string str
into uppercase characters ('A' through 'Z').
strupr
is not affected by the program's locale.
strupr
returns a pointer to the original input string.
#include <lcstring.h> #include <stdio.h> #define MAXLEN 80 main() { char line[MAXLEN]; char *input; puts("Enter a string of lowercase characters:"); input = gets(line); strupr(input); printf("Your converted input is as follows:n%sn",input); }
memupr
, strlwr
, strxlt