text: /* ************************************************************************** */
  /*                                                                            */
  /*                                                        :::      ::::::::   */
  /*   ft_strrchr.c                                       :+:      :+:    :+:   */
  /*                                                    +:+ +:+         +:+     */
  /*   By: nsierra- <nsierra-@student.42.fr>          +#+  +:+       +#+        */
  /*                                                +#+#+#+#+#+   +#+           */
  /*   Created: 2013/11/21 16:18:58 by nsierra-          #+#    #+#             */
  /*   Updated: 2015/01/04 17:25:02 by nsierra-         ###   ########.fr       */
  /*                                                                            */
  /* ************************************************************************** */
  
  #include <stddef.h>
  #include "libft.h"
  
  char	*ft_strrchr(const char *s, int c)
  {
  	const char	*last;
  
  	last = NULL;
  	if (c == '\0')
  		return (ft_strchr(s, c));
  	while ((s = ft_strchr(s, c)) != NULL)
  	{
  		last = s;
  		s++;
  	}
  	return ((char *)last);
  }
  