-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathft_isascii.c
23 lines (20 loc) · 1.06 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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_isascii.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: jaeskim <jaeskim@student.42seoul.kr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2020/09/26 16:37:32 by jaeskim #+# #+# */
/* Updated: 2020/09/27 08:21:40 by jaeskim ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
/*
** ft_isascii - checks whether c is a 7-bit unsigned char
** value that fits into the ASCII character set.
*/
int ft_isascii(int c)
{
return (c >= 0 && c < 128);
}