/
ft_isalnum.c
25 lines (22 loc) · 1.07 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: cromo <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2019/03/08 01:41:46 by cromo #+# #+# */
/* Updated: 2019/04/03 03:59:45 by cromo ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
int ft_isalnum(int c)
{
int count;
count = 0;
if ((c > 64 && c < 91) || (c > 96 && c < 123))
return (++count);
else if (c > 47 && c < 58)
return (++count);
return (count);
}