Loading...
Select Version
&pagelevel(4)&pagelevel
Definition | #include <ctype.h> int ispunct(c);
| ||
Return val. |
0 | c is a special character. c is not a special character. | |
Note |
| ||
Example | #include <ctype.h>
#include <stdio.h>
int main(void)
{
int c;
while((c = getchar()) != EOF)
printf("%s : %c\n",((ispunct(c))? "Special character" : "Other"), c);
return 0;
}
| ||
See also | isalnum, isascii, iscntrl, isdigit, isgraph, islower, isalpha, isprint, isspace, isupper, isxdigit, | ||