summaryrefslogtreecommitdiff
path: root/src/ctype/ispunct.c
blob: a491d5dc4b04d375fd0f2a3a495f2c147727a204 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
#include <ctype.h>

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

int __ispunct_l(int c, locale_t l)
{
	return ispunct(c);
}

weak_alias(__ispunct_l, ispunct_l);