-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_isalnum.c
43 lines (36 loc) · 1.32 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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_isalnum.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: snocita <snocita@student.42wolfsburg.de> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/12/12 19:09:46 by snocita #+# #+# */
/* Updated: 2022/12/21 10:30:14 by snocita ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
// #include <ctype.h>
// #include <stdio.h>
// int isalnum(int c);
// int ft_isalpha(int c);
// int ft_isdigit(int c);
int ft_isalnum(int c)
{
if (ft_isalpha(c) || ft_isdigit(c))
return (1);
else
return (0);
}
// int main(void)
// {
// char c;
// char result1;
// char result2;
// c = 8;
// result1 = ft_isalnum(c);
// result2 = isalnum(c);
// printf("%d\n", result1);
// printf("%d\n", result2);
// return (0);
// }