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

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