/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ft_ischarset.c :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: rbousset +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2020/02/14 17:06:39 by rbousset #+# #+# */ /* Updated: 2020/02/14 17:06:39 by rbousset ### ########lyon.fr */ /* */ /* ************************************************************************** */ #include #include #include uint8_t ft_ischarset(const char *charset, int c) { size_t i; i = 0; while (charset[i]) { if (charset[i] == c) return (1); i++; } return (0); }