-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathft_isprint.c
21 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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_isprint.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: mmalie <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/11/07 08:43:37 by mmalie #+# #+# */
/* Updated: 2024/11/14 09:28:44 by mmalie ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
/*
* Implementation of isprint() from <ctype.h>: Checks if the given character
* is printable (includes space and visible characters).
*/
int ft_isprint(int c)
{
return ((c >= 32) && (c <= 126));
}