summaryrefslogtreecommitdiff
path: root/lib/isspace.c
blob: 9e89d76e13c94306a5170baa73fc7f1f89195370 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include <ctype.h>

int isspace(int c)
{
	switch (c) {
	case ' ':
	case '\t':
	case '\v':
	case '\f':
	case '\r':
	case '\n':
		return 1;
	default:
		return 0;
	}
}