text: /* ************************************************************************** */
  /*                                                                            */
  /*                                                        ::::::::            */
  /*   ft_strchr.c                                        :+:    :+:            */
  /*                                                     +:+                    */
  /*   By: tosinga <tosinga@student.42.fr>              +#+                     */
  /*                                                   +#+                      */
  /*   Created: 2022/02/02 18:39:55 by tosinga       #+#    #+#                 */
  /*   Updated: 2022/02/02 18:39:55 by tosinga       ########   odam.nl         */
  /*                                                                            */
  /* ************************************************************************** */
  
  #include "libft.h"
  
  char	*ft_strchr(const char *s, int c)
  {
  	unsigned char	d;
  
  	d = c;
  	while (*s)
  	{
  		if (*s == d)
  			return ((char *)s);
  		++s;
  	}
  	if (c == '\0')
  		return ((char *)s);
  	return (0);
  }
  