text: /* ************************************************************************** */
  /*                                                                            */
  /*                                                        :::      ::::::::   */
  /*   ft_strrchr.c                                       :+:      :+:    :+:   */
  /*                                                    +:+ +:+         +:+     */
  /*   By: bsouchet <bsouchet@student.42.fr>          +#+  +:+       +#+        */
  /*                                                +#+#+#+#+#+   +#+           */
  /*   Created: 2015/11/28 07:53:59 by bsouchet          #+#    #+#             */
  /*   Updated: 2017/05/30 16:50:12 by bsouchet         ###   ########.fr       */
  /*                                                                            */
  /* ************************************************************************** */
  
  #include "libft.h"
  
  char		*ft_strrchr(const char *s, int c)
  {
  	int			i;
  
  	i = ft_strlen(s);
  	while (i >= 0)
  	{
  		if (s[i] == (char)c)
  			return ((char*)s + i);
  		i--;
  	}
  	return (NULL);
  }
  