isctype
isctype is a function from the C standard library interfaces that tests whether a given character belongs to a specified character class. It is commonly found on POSIX-compliant systems and in some C libraries (such as those used on Unix-like systems and some Windows environments), but it is not part of the ISO C standard. The function is useful for character classification that may depend on locale settings beyond the basic ASCII categories.
The typical declaration is int isctype(int c, int type); both parameters are integers. The first parameter represents
Usage notes and portability considerations are important. Because isctype is not mandated by the ISO C standard,
Example (illustrative, not portable across all implementations):
if (isctype(c, DIGIT)) { /* handle digit */ }