-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_isprint.c
30 lines (29 loc) · 1.14 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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_isprint.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: rgerdzhi <[email protected] +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/06/25 15:59:44 by rgerdzhi #+# #+# */
/* Updated: 2024/07/08 17:48:36 by rgerdzhi ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
int ft_isprint(int c)
{
if (c >= 32 && c <= 126)
return (16384);
else
return (0);
}
/*
int main(int argc, char *argv[])
{
char c;
c = argv[1][0];
printf("my function: %d\n", ft_isprint(c));
printf("isprint: %d\n", isprint(c));
return (0);
}
*/