-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_isprint.c
27 lines (24 loc) · 1.16 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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_isprint.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: dalves-p <dalves-p@student.42sp.org.br> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2021/05/24 15:58:58 by dalves-p #+# #+# */
/* Updated: 2021/06/28 10:58:03 by dalves-p ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
/*
** LIBRARY: <ctype.h>
** DESCRIPTION:
** The isprint() function tests if a character c is printable according to
** ASCII table, including space. That is, between 32-126 at ASCII, inclusive.
*/
int ft_isprint(int c)
{
if (c >= 32 && c <= 126)
return (1);
return (0);
}