-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathft_isalnum.c
More file actions
28 lines (22 loc) · 1.16 KB
/
ft_isalnum.c
File metadata and controls
28 lines (22 loc) · 1.16 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
25
26
27
28
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_isalnum.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: amait-ou <amait-ou@student.1337.ma> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/09/29 11:28:02 by amait-ou #+# #+# */
/* Updated: 2022/10/16 12:58:56 by amait-ou ### ########.fr */
/* */
/* ************************************************************************** */
/*
This function returns true if the given character is alphanumeric
(either number or alphabet)
since we have created the ft_isdigit() and ft_isalpha() functions
I use them right here to check
*/
#include "libft.h"
int ft_isalnum(int c)
{
return (ft_isdigit(c) || ft_isalpha(c));
}