/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ft_strchr.c :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: rel-fila <rel-fila@student.1337.ma> +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2022/10/16 13:36:54 by rel-fila #+# #+# */ /* Updated: 2022/10/18 21:53:30 by rel-fila ### ########.fr */ /* */ /* ************************************************************************** */ #include "libft.h" char *ft_strchr(const char *str, int c) { while (*str != (char)c) { if (*str == '\0') return (NULL); str++; } return ((char *)str); }