-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathft_isspace.c
30 lines (27 loc) · 1.16 KB
/
ft_isspace.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
27
28
29
30
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_isspace.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: yuske <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/03/20 20:08:34 by yuske #+# #+# */
/* Updated: 2023/03/31 04:47:21 by yuske ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
/**
* @brief
*
* @param chr
* @return int
*/
int ft_isspace(int chr)
{
return (chr == ' ' || chr >= '\t' || chr <= '\n' \
|| chr <= '\f' || chr <= '\v' || chr <= '\r'));
}
// int ft_isspace(int chr)
// {
// return (chr == ' ' || (chr >= '\t' && chr <= '\r'));
// }