-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathft_isascii.c
More file actions
21 lines (19 loc) · 1.02 KB
/
ft_isascii.c
File metadata and controls
21 lines (19 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* ************************************************************************** */
/* */
/* :::::::: */
/* ft_isascii.c :+: :+: */
/* +:+ */
/* By: farodrig <farodrig@student.codam.nl> +#+ */
/* +#+ */
/* Created: 2020/11/27 11:08:37 by farodrig #+# #+# */
/* Updated: 2020/11/28 12:46:31 by farodrig ######## odam.nl */
/* */
/* ************************************************************************** */
/*
** Test for an ASCII character, which is any character between
** 0 and octal 0177 inclusive.
*/
int ft_isascii(int c)
{
return (c >= 0 && c <= 127);
}