summaryrefslogtreecommitdiffstats
path: root/mdk-stage1/dietlibc/libcruft/__parse_ws.c
blob: 68068ade0fcdf6e2a4e7acb66d1189bc6327921e (plain)
1
2
3
4
5
6
7
8
9
10
11
#include <sys/types.h>
#include <ctype.h>
#include "parselib.h"

static int __isblank(int ch) {
  return (ch==' ' || ch=='\t');
}

size_t __parse_ws(struct state* s) {
  return __parse(s,__isblank);
}