-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathft_isalnum.c
More file actions
28 lines (26 loc) · 1.21 KB
/
Copy pathft_isalnum.c
File metadata and controls
28 lines (26 loc) · 1.21 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: spunyapr <spunyapr@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/11/27 14:55:42 by spunyapr #+# #+# */
/* Updated: 2024/11/28 12:37:44 by spunyapr ### ########.fr */
/* */
/* ************************************************************************** */
int ft_isalnum(int c)
{
if ((c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z') || (c >= '0'
&& c <= '9'))
return (1);
return (0);
}
// #include"libft.h"
// int main ()
// {
// printf("%d\n", ft_isalnum('9'));
// printf("%d\n", ft_isalnum('D'));
// printf("%d\n", ft_isalnum('m'));
// printf("%d\n", ft_isalnum('-'));
// }