-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathft_isascii.c
25 lines (23 loc) · 1.16 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: cjackows <cjackows@student.42wolfsburg. +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/06/08 22:35:08 by cjackows #+# #+# */
/* Updated: 2022/06/18 17:28:05 by cjackows ### ########.fr */
/* */
/* ************************************************************************** */
#include "../inc/libft.h"
/**
* @brief Function checks if 'c' is a ASCII character (-1 [0 to 127] 128).
* @param c Parameter that gets checked.
* @return Returns int 1 if parameter is ASCII or 0 if it's not.
*/
int ft_isascii(int c)
{
if (c >= 0 && c <= 127)
return (1);
return (0);
}