aboutsummaryrefslogtreecommitdiff
path: root/src/ctype/ispunct.c
blob: e512657fddd5291c2d8f6b27a5369d28edebc2c4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#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);


#ifdef TEST
int
main(void) {
	return 0;
}
#endif