text: /* ************************************************************************** */
  /*                                                                            */
  /*                                                        :::      ::::::::   */
  /*   ft_strrchr.c                                       :+:      :+:    :+:   */
  /*                                                    +:+ +:+         +:+     */
  /*   By: mpivet-p <marvin@42.fr>                    +#+  +:+       +#+        */
  /*                                                +#+#+#+#+#+   +#+           */
  /*   Created: 2018/11/07 17:31:29 by mpivet-p          #+#    #+#             */
  /*   Updated: 2018/11/17 14:21:59 by mpivet-p         ###   ########.fr       */
  /*                                                                            */
  /* ************************************************************************** */
  
  #include "libft.h"
  
  char	*ft_strrchr(const char *s, int c)
  {
  	int i;
  
  	i = 0;
  	while (s[i])
  		i++;
  	while (s[i] != c && i > 0)
  		i--;
  	if (s[i] == c)
  		return ((char*)&s[i]);
  	return (NULL);
  }
  