blob: fc60287fb83b82f92190ec339fcb6ba4ab4b7432 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#include <ctype.h> // for isalnum, isgraph, ispunct, ispunct_l
#include <locale.h> // for locale_t
#include <sys/cdefs.h> // for __unused, __weak
int ispunct(int c)
{
return isgraph(c) && !isalnum(c);
}
__weak int ispunct_l(int c, locale_t __unused locale)
{
return ispunct(c);
}
|