/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ft_isalnum.c :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: apommier +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2020/11/29 00:10:08 by apommier #+# #+# */ /* Updated: 2020/12/12 09:26:43 by apommier ### ########.fr */ /* */ /* ************************************************************************** */ #include "libft.h" int ft_isalnum(int c) { if (c <= '9' && c >= '0') return (1); else if ((c >= 'A' && c <= 'Z') || (c >= 'a' && c <= 'z')) return (1); else return (0); }