summaryrefslogtreecommitdiff
path: root/src/ctype/ispunct.c
blob: fc455352b51480be0966252ace0431fe89ea525e (plain) (blame)
1
2
3
4
5
6
#include <ctype.h>

int ispunct(int c)
{
	return isgraph(c) && !isalnum(c);
}