-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathft_isprint.c
More file actions
36 lines (32 loc) · 1.11 KB
/
ft_isprint.c
File metadata and controls
36 lines (32 loc) · 1.11 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
27
28
29
30
31
32
33
34
35
36
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_isprint.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: moabed <moabed@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/06/22 19:26:51 by moabed #+# #+# */
/* Updated: 2025/08/17 17:14:04 by moabed ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
int ft_isprint(int x)
{
int i;
i = 0;
if (x < 127 && x >= 32)
i = 1;
else
{
i = 0;
}
return (i);
}
/*
int main(void){
char test[]= "Zf09";
int i= ft_str_is_printable(test);
char x;
x = i+ '0';
write(1,&x,1);
}*/