-
Notifications
You must be signed in to change notification settings - Fork 12
/
ft_isascii.c
27 lines (25 loc) · 1.15 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
26
27
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_isascii.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: apuchill <apuchill@student.42sp.org.br> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2020/01/26 13:04:37 by apuchill #+# #+# */
/* Updated: 2020/02/19 14:02:58 by apuchill ### ########.fr */
/* */
/* ************************************************************************** */
/*
** LIBRARY: <ctype.h>
** SYNOPSIS: test for ASCII character
**
** DESCRIPTION:
** The isascii() function tests for an ASCII character, which is any
** character between 0 and octal 0177 inclusive.
*/
int ft_isascii(int c)
{
if (c >= 0 && c <= 127)
return (1);
return (0);
}