-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_isascii.c
24 lines (22 loc) · 1.07 KB
/
ft_isascii.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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_isascii.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: mmaurer <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2021/08/24 15:25:15 by mmaurer #+# #+# */
/* Updated: 2021/09/07 21:37:56 by mmaurer ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
/*
* checks whether c is a 7-bit unsigned char value that fits into the ASCII
* character set.
*/
int ft_isascii(int c)
{
if ((c >= 0) && (c <= 127))
return (1);
return (0);
}