BOOL IsCharAlpha(chTest) | ||||
char chTest; | /* character to test, */ |
The IsCharAlpha function determines whether a character is in the set of language-defined alphabetic characters.
chTest
Specifies the character to be tested.
The return value is nonzero if the character is in the set of alphabetic characters. Otherwise, it is zero.
The language driver for the current language (the language the user selected at setup or by using Control Panel) determines whether the character is in the set. If no language has been set, Windows uses an internal function.
The following example uses the IsCharAlpha function to find the first nonalphabetic character in a string:
for (lpszNon = lpsz; IsCharAlpha(*lpszNon);
lpszNon = AnsiNext(lpszNon));