summaryrefslogtreecommitdiff
path: root/src/ctype/isspace.c
blob: 231e90793ddd385fdb0acba4168f3414f2beb500 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include <ctype.h>
#include "libc.h"
#undef isspace

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

int __isspace_l(int c, locale_t l)
{
	return isspace(c);
}

weak_alias(__isspace_l, isspace_l);