text: /* ************************************************************************** */
  /*                                                                            */
  /*                                                        :::      ::::::::   */
  /*   ft_strrchr.c                                       :+:      :+:    :+:   */
  /*                                                    +:+ +:+         +:+     */
  /*   By: fde-capu <marvin@42.fr>                    +#+  +:+       +#+        */
  /*                                                +#+#+#+#+#+   +#+           */
  /*   Created: 2020/01/21 12:37:42 by fde-capu          #+#    #+#             */
  /*   Updated: 2020/06/17 07:47:13 by fde-capu         ###   ########.fr       */
  /*                                                                            */
  /* ************************************************************************** */
  
  #include "libft.h"
  
  char	*ft_strrchr(const char *s, int c)
  {
  	char	*p;
  
  	p = (char *)s;
  	while (*p)
  		p++;
  	while ((*p != c) && (p > s))
  		p--;
  	return (*p == c ? (char *)p : 0);
  }
  