-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathft_isalnum.c
More file actions
30 lines (27 loc) · 1.12 KB
/
Copy pathft_isalnum.c
File metadata and controls
30 lines (27 loc) · 1.12 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
29
30
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_isalnum.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: jperpect <jperpect@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/04/10 12:40:57 by jperpect #+# #+# */
/* Updated: 2024/04/19 21:26:28 by jperpect ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
int ft_isalnum(int c)
{
if ((c >= '0' && c <= '9') || (c >= 'a' && c <= 'z') || (c >= 'A'
&& c <= 'Z'))
return (1);
else
return (0);
}
/*
int main(int argc, char **argv )
{
int a;
a = isalnum(argv[1][0]);
printf("%d",a);
}*/