-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathft_isalnum.c
More file actions
29 lines (26 loc) · 1.16 KB
/
ft_isalnum.c
File metadata and controls
29 lines (26 loc) · 1.16 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
/* ************************************************************************** */
/* */
/* :::::::: */
/* ft_isalnum.c :+: :+: */
/* +:+ */
/* By: pzlatov <pzlatov@student.codam.nl> +#+ */
/* +#+ */
/* Created: 2024/10/07 18:58:21 by pzlatov #+# #+# */
/* Updated: 2024/10/25 20:15:16 by pzlatov ######## odam.nl */
/* */
/* ************************************************************************** */
#include "libft.h"
int ft_isalnum(int c)
{
if (!((c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z')
|| (c >= '0' && c <= '9')))
return (0);
return (1);
}
// int main()
// {
// char c = 'Z';
// printf("%d\n", ft_isalnum(c));
// printf("%d\n", isalnum(c));
// return 0;
// }