toupper _toupper, towupper
Convert character to uppercase.
int toupper( int c ); int _toupper( int c ); int towupper( wint_t c );
- Character to convert.
Each of these routines converts a copy of c, if possible, and returns the result.
If c is a wide character for which iswlower is nonzero and there is a corresponding wide character for which iswupper is nonzero, towupper returns the corresponding wide character; otherwise, towupper returns c unchanged.
There is no return value reserved to indicate an error.
Each of these routines converts a given lowercase letter to an uppercase letter if possible and appropriate.
Generic-Text Routine Mappings
|TCHAR.H routine||_UNICODE & _MBCS not defined||_MBCS defined||_UNICODE defined|
|toupper||<stdlib.h> and <ctype.h>||ANSI, Win 98, Win Me, Win NT, Win 2000, Win XP|
|_toupper||<ctype.h>||Win 98, Win Me, Win NT, Win 2000, Win XP|
|towupper||<ctype.h> or <wchar.h>||ANSI, Win 98, Win Me, Win NT, Win 2000, Win XP|
For additional compatibility information, see Compatibility in the Introduction.
All versions of the C run-time libraries.
See the example in to Functions.