summaryrefslogtreecommitdiff
path: root/src/ctype/ispunct.c
blob: e772d76a03f20493552beacfadec2844f9452987 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include <ctype.h>
#include "libc.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);