summaryrefslogtreecommitdiff
path: root/lib/libc/ctype/ispunct.c
blob: e00297575a3229d109abf4085ccaf5a4bd8184da (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include "features.h" // for __weak

#include <ctype.h>  // for isalnum, isgraph, ispunct, ispunct_l
#include <libc.h>   // for __unused
#include <locale.h> // for locale_t

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

__weak int ispunct_l(int c, locale_t __unused locale)
{
	return ispunct(c);
}