-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathft_isascii.c
More file actions
24 lines (23 loc) · 1.11 KB
/
ft_isascii.c
File metadata and controls
24 lines (23 loc) · 1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_isascii.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: jowagner <jowagner@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/11/12 14:01:57 by jowagner #+# #+# */
/* Updated: 2024/12/13 17:33:25 by jowagner ### ########.fr */
/* */
/* ************************************************************************** */
/**
* @brief Checks if the character c is in the ASCII table.
*
* @param c The value to test.
* @return 1 if c is in the ASCII range (0-127), 0 otherwise.
*/
int ft_isascii(int c)
{
if (c >= 0 && c <= 127)
return (1);
return (0);
}