-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_isblank.c
25 lines (23 loc) · 1.14 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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_isblank.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: pix <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/02/17 19:49:48 by pix #+# #+# */
/* Updated: 2022/04/04 02:54:48 by pix ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
/**
* @brief Checks if c is a blank character; that is, a space or a tab.
*
* @param c Character value to check
*
* @return (int) Nonzero if character is a blank character and zero if not
*/
int ft_isblank(int c)
{
return (c == ' ' || c == '\t');
}