-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathft_isprint.c
More file actions
31 lines (28 loc) · 1.4 KB
/
ft_isprint.c
File metadata and controls
31 lines (28 loc) · 1.4 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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_isprint.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: ccarnot <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/05/03 10:43:27 by ccarnot #+# #+# */
/* Updated: 2023/06/02 11:50:52 by ccarnot ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
/*************************************************************************************
* Function: isprint
* Library: <ctype.h>
* Description: Determines whether a character is printable.
* Memory allocations: None
* Crash values: None
* Return values: Returns a non-zero value (usually 1) if the character is printable,
0 otherwise.
************************************************************************************/
int ft_isprint(int c)
{
if (c > 31 && c < 127)
return (1);
else
return (0);
}