-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathft_isalnum.c
More file actions
28 lines (27 loc) · 1.13 KB
/
Copy pathft_isalnum.c
File metadata and controls
28 lines (27 loc) · 1.13 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: dpadenko <dpadenko@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/09/05 12:01:47 by dpadenko #+# #+# */
/* Updated: 2023/09/15 17:12:58 by dpadenko ### ########.fr */
/* */
/* ************************************************************************** */
int ft_isalnum(int c)
{
if ((c > 64 && c < 91) || (c > 96 && c < 123) || (c > 47 && c < 58))
return (1);
else
return (0);
}
/*
#include <stdio.h>
int main(int argc, char **argv)
{
if (argc != 2)
return(0);
printf ("%d", ft_isalnum(*argv[1]));
}
*/