-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_isprint.c
23 lines (20 loc) · 1.09 KB
/
ft_isprint.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_isprint.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: gubranco <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/10/28 12:23:20 by gubranco #+# #+# */
/* Updated: 2022/10/28 12:25:40 by gubranco ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
int ft_isprint(int c)
{
if (c >= 32 && c <= 126)
return (1);
return (0);
}
/* checks if the parameter int is a printable character (inc. space), if
its true it returns 1, if its false it returns 0 */