text: /* ************************************************************************** */
  /*                                                                            */
  /*                                                        :::      ::::::::   */
  /*   ft_strrchr.c                                       :+:      :+:    :+:   */
  /*                                                    +:+ +:+         +:+     */
  /*   By: njacobso <marvin@42.fr>                    +#+  +:+       +#+        */
  /*                                                +#+#+#+#+#+   +#+           */
  /*   Created: 2018/11/22 18:40:23 by njacobso          #+#    #+#             */
  /*   Updated: 2018/11/22 19:25:51 by njacobso         ###   ########.fr       */
  /*                                                                            */
  /* ************************************************************************** */
  
  #include <string.h>
  
  char	*ft_strrchr(const char *s, int c)
  {
  	int i;
  
  	i = 0;
  	while (s[i])
  		i++;
  	i++;
  	while (--i >= 0)
  		if (s[i] == c)
  			return ((char*)s + i);
  	return (NULL);
  }
  