-
Notifications
You must be signed in to change notification settings - Fork 0
/
space.c
24 lines (21 loc) · 1.09 KB
/
space.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* space.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: qle-guen <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2016/10/19 14:32:25 by qle-guen #+# #+# */
/* Updated: 2016/10/19 14:41:52 by qle-guen ### ########.fr */
/* */
/* ************************************************************************** */
#include "libparse.h"
static int iswhitespace(char c)
{
return (c == ' ' || c == '\t' || c == '\v' || c == '\f' || c == '\r');
}
char *space(t_parg arg, char *inp)
{
arg.f = &iswhitespace;
return (satisfy(arg, inp));
}