text: /* ************************************************************************** */
  /*                                                                            */
  /*                                                        :::      ::::::::   */
  /*   ft_strchr.c                                        :+:      :+:    :+:   */
  /*                                                    +:+ +:+         +:+     */
  /*   By: rtakeshi <rtakeshi@student.42sp.org.br>    +#+  +:+       +#+        */
  /*                                                +#+#+#+#+#+   +#+           */
  /*   Created: 2021/09/05 12:06:46 by rtakeshi          #+#    #+#             */
  /*   Updated: 2021/09/05 12:06:47 by rtakeshi         ###   ########.fr       */
  /*                                                                            */
  /* ************************************************************************** */
  
  #include "libft.h"
  
  char	*ft_strchr(const char *s, int c)
  {
  	size_t	counter;
  
  	counter = 0;
  	while (s[counter] != '\0')
  	{
  		if (s[counter] == (char)c)
  			return ((char *)(s + counter));
  		counter++;
  	}
  	if (s[counter] == (char)c)
  		return ((char *)(s + counter));
  	return (NULL);
  }
  