/* ************************************************************************** */
/*                                                          LE - /            */
/*                                                              /             */
/*   ft_ischarset.c                                   .::    .:/ .      .::   */
/*                                                 +:+:+   +:    +:  +:+:+    */
/*   By: rbousset <marvin@le-101.fr>                +:+   +:    +:    +:+     */
/*                                                 #+#   #+    #+    #+#      */
/*   Created: 2019/12/22 16:52:31 by rbousset     #+#   ##    ##    #+#       */
/*   Updated: 2019/12/22 16:52:32 by rbousset    ###    #+. /#+    ###.fr     */
/*                                                         /                  */
/*                                                        /                   */
/* ************************************************************************** */

#include <libft.h>
#include <stddef.h>
#include <inttypes.h>

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);
}