-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathft_skip.c
More file actions
28 lines (25 loc) · 1.1 KB
/
ft_skip.c
File metadata and controls
28 lines (25 loc) · 1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_skip.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: vopolonc <vopolonc@student.unit.ua> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2018/11/17 14:22:10 by vopolonc #+# #+# */
/* Updated: 2018/11/17 14:29:03 by vopolonc ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
int ft_skip(const char *str)
{
int i;
i = 0;
while (*(str + i) == '\n' ||
*(str + i) == '\t' ||
*(str + i) == '\r' ||
*(str + i) == '\v' ||
*(str + i) == '\f' ||
*(str + i) == 32)
i++;
return (i);
}