text: /* ************************************************************************** */
  /*                                                                            */
  /*                                                        :::      ::::::::   */
  /*   ft_strrchr.c                                       :+:      :+:    :+:   */
  /*                                                    +:+ +:+         +:+     */
  /*   By: gizawahr <marvin@42.fr>                    +#+  +:+       +#+        */
  /*                                                +#+#+#+#+#+   +#+           */
  /*   Created: 2019/11/19 10:39:21 by gizawahr          #+#    #+#             */
  /*   Updated: 2019/11/19 10:39:31 by gizawahr         ###   ########.fr       */
  /*                                                                            */
  /* ************************************************************************** */
  
  #include "libft.h"
  
  char	*ft_strrchr(const char *s, int c)
  {
  	char	*last_pos;
  
  	last_pos = (0);
  	while (*s)
  	{
  		if (*s == c)
  			last_pos = (char*)s;
  		++s;
  	}
  	if (last_pos)
  		return (last_pos);
  	if (c == '\0')
  		return ((char*)s);
  	return (0);
  }
  