-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathft_isascii.c
executable file
·25 lines (22 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
24
25
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_isascii.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: mwilliam <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2016/11/11 20:40:33 by mwilliam #+# #+# */
/* Updated: 2016/12/02 20:57:21 by mwilliam ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
/*
** Tests for ASCII characters --
** any character between 0 and octal 0177 inclusive
*/
int ft_isascii(int c)
{
if (c >= 000 && c <= 0177)
return (1);
return (0);
}