programming.nbk: Home | Index | Next Page: int isxdigit(int c) | Previous Page: int isspace(int c)


 int isupper(int c)

Description

The isupper() function tests for any character that is an uppercase letter or is one of an implementation-defined set of characters for which none of iscntrl(), isdigit(), ispunct(), or isspace() is true. In the C locale, isupper() returns true only for the characters defined as uppercase letters.

The behavior of the isupper() function is affected by the current locale. To modify the behavior, change the LC_CTYPE category in setlocale(), that is, setlocale(LC_CTYPE, newlocale). In the C locale or in a locale where character type information is not defined, characters are classified according to the rules of the U.S. ASCII 7-bit coded character set.

Parameters

Return Values

The isupper() function returns non-zero for true and zero for false. If the parameter is not in the domain of the function, the return result is undefined.


programming.nbk: Home | Index | Next Page: int isxdigit(int c) | Previous Page: int isspace(int c)


Notebook exported on Monday, 7 July 2008, 18:56:06 PM Eastern Daylight Time