-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_isascii.c
19 lines (18 loc) · 997 Bytes
/
ft_isascii.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_isascii.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: lumfred <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2021/10/04 14:16:49 by lumfred #+# #+# */
/* Updated: 2021/10/15 13:26:56 by lumfred ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
int ft_isascii(int ch)
{
if (ch >= 0 && ch <= 127)
return (ch + 1);
return (0);
}