-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathft_isprint.c
33 lines (28 loc) · 1.19 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
24
25
26
27
28
29
30
31
32
33
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_isprint.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: mcosta-d <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/04/16 19:29:34 by mcosta-d #+# #+# */
/* Updated: 2023/04/16 19:36:25 by mcosta-d ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
int ft_isprint(int nb)
{
if (nb >= 32 && nb <= 126)
return (1);
return (0);
}
/*
#include<stdio.h>
#include<ctype.h>
int main(void)
{
printf("The result of my function is %d \n", ft_isprint(' '));
printf ("The result of the original function is %d \n", isprint(' '));
return (0);
}
*/