summaryrefslogtreecommitdiff
path: root/lib/libc/ctype/isspace.c
blob: 201daca02b2537da7abcdb4eb967fbca5f32a866 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#include <ctype.h>     // for isspace, isspace_l, locale_t
#include <sys/cdefs.h> // for __unused, __weak

int isspace(int c)
{
	return c == ' ' || (unsigned)c - '\t' < 5;
}

__weak int isspace_l(int c, locale_t __unused locale)
{
	return isspace(c);
}