-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_isalnum.c
25 lines (24 loc) · 1.12 KB
/
ft_isalnum.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_isalnum.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: ana-lda- <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/04/11 20:48:37 by ana-lda- #+# #+# */
/* Updated: 2024/04/11 21:12:03 by ana-lda- ### ########.fr */
/* */
/* ************************************************************************** */
int ft_isalnum(int c)
{
if ((c < 'A' || (c > 'Z' && c < 'a') || c > 'z') && (c < 48 || c > 57))
return (0);
return (8);
}
/*#include <stdio.h>
#include <ctype.h>
int main(void)
{
printf("%i\n", ft_isalnum('a'));
printf("%i\n", isalnum('a'));
}*/