-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathft_isprint.c
More file actions
34 lines (30 loc) · 1.13 KB
/
Copy pathft_isprint.c
File metadata and controls
34 lines (30 loc) · 1.13 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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_isprint.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: fclaus-g <fclaus-g@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/09/23 18:16:42 by fclaus-g #+# #+# */
/* Updated: 2022/09/29 14:03:17 by fclaus-g ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
int ft_isprint(int c)
{
if (c >= ' ' && c <= 126)
return (1);
else
return (0);
}
/*
#include <stdio.h>
#include <ctype.h>
int main(void)
{
int c;
c = 127;
printf ("%d\n", ft_isprint(c));
printf ("%d\n", isprint(c));
return (0);
}*/