The strupr( ) function is used to converts a given string to uppercase.
char *strupr(char *str);
- str: This represents the given string which we want to convert into uppercase.
Returns: It returns the modified string obtained after converting the characters of the given string str to uppercase.
Below programs illustrate the strupr() function in C:
GEEKSFORGEEKS IS THE BEST
Given string is: CompuTer ScienCe PoRTAl fOr geeKS string after converting to the uppercase is: COMPUTER SCIENCE PORTAL FOR GEEKS
Note : This is a non-standard function that works only with older versions of Microsoft C.
Attention reader! Don’t stop learning now. Get hold of all the important DSA concepts with the DSA Self Paced Course at a student-friendly price and become industry ready.
- Print substring of a given string without using any string function and loop in C
- Why "&" is not used for strings in scanf() function?
- strrchr() function in C/C++
- strncat() function in C/C++
- strspn() function in C
- C program to copy string without using strcpy() function
- strlen() function in c
- strcmpi() function in C
- strnset() function in C
- toupper() function in C
- tolower() function in C
- strlwr() function in C
- std::string::crbegin() and std::string::crend() in C++ with Examples
- ctype.h(<cctype>) library in C/C++ with Examples
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to firstname.lastname@example.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.