Header file wctype.h
Declarationwctype_t wctype(const char *attr);int iswctype(wint_t ch, wctype_t attr_ob);
alnum
digit
print
upper
alpha
graph
punct
xdigit
cntrl
lower
space
The following fragment demonstrates the wctype() and iswctype() functions:
#include
#include
int main(void){
wctype_t x;
x = wctype("space");
if(iswctype(L' ', x)){
printf("Is a space.\n");
}
}
(C: The Complete Reference, Fourth Edition by Herbert Schildt McGraw-Hill/Osborne 2000
ISBN-10: 0072121246, ISBN-13: 978-0072121247)