BOOL IsCharLower(chTest) | ||||
char chTest; | /* character to test, */ |
The IsCharLower function determines whether a character is in the set of language-defined lowercase characters.
chTest
Specifies the character to be tested.
The return value is nonzero if the character is lowercase. Otherwise, it is zero.
The language driver for the current language (the language selected at setup or by using Control Panel) determines whether the character is in the set. If no language driver is selected, Windows uses an internal function.
The following example uses the IsCharLower function to find the first lowercase character in a string:
/* Look through string for a lowercase character. */
for (lpszLower = lpsz;
!IsCharLower(*lpszLower) && lpszLower != '\0';
lpszLower = AnsiNext(lpszLower));
/* Return NULL if no lowercase character is found. */
if (lpszLower == '\0')
lpszLower = NULL;