-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathft_isascii.c
21 lines (20 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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_isascii.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: mmalie <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/11/04 15:34:01 by mmalie #+# #+# */
/* Updated: 2024/11/14 09:28:22 by mmalie ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
/*
* Implementation of isascii() from <ctype.h>: Checks if the given character
* is a valid ASCII character (0-127).
*/
int ft_isascii(int c)
{
return ((c >= 0) && (c <= 127));
}