![]() uppercase and lowercase copies of a mixed-case string. This program uses _strlwr and _strupr to create Generic-text routine mappings TCHAR.H routineįor more compatibility information, see Compatibility. To change this behavior, see Global state in the CRT. ![]() For more information, see Secure template overloads.īy default, this function's global state is scoped to the application. In C++, these functions have template overloads that invoke the newer, secure counterparts of these functions. If execution is allowed to continue, these functions return the original string and set errno to EINVAL. If str is a NULL pointer, the invalid parameter handler is invoked, as described in Parameter validation. These three functions behave identically otherwise. The argument and return value of _mbslwr are multibyte-character strings. The argument and return value of _wcslwr are wide-character strings. The _wcslwr and _mbslwr functions are wide-character and multibyte-character versions of _strlwr. The versions of these functions without the _l suffix use the current locale for their locale-dependent behavior the versions with the _l suffix are identical except that they use the locale passed in instead. For more information on LC_CTYPE, see setlocale. The _strlwr function converts any uppercase letters in str to lowercase as determined by the LC_CTYPE category setting of the locale. ![]() No return value is reserved to indicate an error. Because the modification is done in place, the pointer returned is the same as the pointer passed as the input argument. LowerCase returns a string with the same text as the string passed in S, but with all letters converted to lowercase. Null-terminated string to convert to lowercase.Įach of these functions returns a pointer to the converted string. For more information, see CRT functions not supported in Universal Windows Platform apps. _mbslwr and _mbslwr_l cannot be used in applications that execute in the Windows Runtime. User is asked to enter the uppercase char and then we are adding the 32 value to it to convert it into a lowercase character.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |