-
Notifications
You must be signed in to change notification settings - Fork 12
/
ft_isblank.c
26 lines (24 loc) · 1.1 KB
/
ft_isblank.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
25
26
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_isblank.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: apuchill <apuchill@student.42sp.org.br> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2020/01/26 14:42:00 by apuchill #+# #+# */
/* Updated: 2020/10/30 19:53:39 by apuchill ### ########.fr */
/* */
/* ************************************************************************** */
/*
** LIBRARY: <ctype.h>
** SYNOPSIS: space or tab character test
**
** DESCRIPTION:
** The isblank() function tests for a space or tab character.
*/
int ft_isblank(int c)
{
if (c == ' ' || c == '\t')
return (1);
return (0);
}