-
Notifications
You must be signed in to change notification settings - Fork 2
/
ft_isalnum.c
25 lines (22 loc) · 1.14 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: adiaz-lo <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2020/01/13 09:27:45 by adiaz-lo #+# #+# */
/* Updated: 2020/01/13 09:28:57 by adiaz-lo ### ########.fr */
/* */
/* ************************************************************************** */
/*
** Function that checks if 'c' is an alphanumeric (alphabetical or number)
** character.
** For further information, please check the Standard C Library Function,
** 'isalnum(int c)'
*/
#include "libft.h"
int ft_isalnum(int c)
{
return (ft_isalpha(c) || ft_isdigit(c));
}