Libft
42 Libft library documentation
Loading...
Searching...
No Matches
ft_isalnum.c
Go to the documentation of this file.
1
/* ************************************************************************** */
2
/* */
3
/* ::: :::::::: */
4
/* ft_isalnum.c :+: :+: :+: */
5
/* +:+ +:+ +:+ */
6
/* By: raphalme <raphalme@student.42.fr> +#+ +:+ +#+ */
7
/* +#+#+#+#+#+ +#+ */
8
/* Created: 2025/12/29 18:25:22 by raphalme #+# #+# */
9
/* Updated: 2026/04/14 11:01:24 by raphalme ### ########.fr */
10
/* */
11
/* ************************************************************************** */
12
19
int
ft_isalnum
(
int
c)
20
{
21
return
(((
unsigned
int
)(c -
'0'
) < 10)
22
|| ((
unsigned
int
)((c | 32) -
'a'
) < 26));
23
}
ft_isalnum
int ft_isalnum(int c)
Checks whether a character is alphanumeric.
Definition
ft_isalnum.c:19
src
ft_isalnum.c
Generated by
1.9.8