-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathft_isprint.c
More file actions
26 lines (23 loc) · 1.09 KB
/
ft_isprint.c
File metadata and controls
26 lines (23 loc) · 1.09 KB
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_isprint.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: kmoutaou <marvin@.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2021/11/04 13:35:47 by kmoutaou #+# #+# */
/* Updated: 2021/11/18 23:50:38 by kmoutaou ### ########.fr */
/* */
/* ************************************************************************** */
/*
ft_isprint is a re-coded -isprint- function from <ctype.h>
that checks whether a character is printable or not.
*/
#include "libft.h"
int ft_isprint(int c)
{
if (c >= 32 && c <= 126)
return (1);
else
return (0);
}