text: /* ************************************************************************** */
  /*                                                                            */
  /*                                                        :::      ::::::::   */
  /*   ft_list_reverse.c                                  :+:      :+:    :+:   */
  /*                                                    +:+ +:+         +:+     */
  /*   By: amendelo <amendelo@student.42.fr>          +#+  +:+       +#+        */
  /*                                                +#+#+#+#+#+   +#+           */
  /*   Created: 2018/11/06 19:03:36 by amendelo          #+#    #+#             */
  /*   Updated: 2018/11/06 19:23:22 by amendelo         ###   ########.fr       */
  /*                                                                            */
  /* ************************************************************************** */
  
  #include "ft_list.h"
  
  void	ft_list_reverse(t_list **begin_list)
  {
  	t_list	*current;
  	t_list	*next;
  	t_list	*prev;
  
  	current = *begin_list;
  	prev = 0;
  	while (current)
  	{
  		next = current->next;
  		current->next = prev;
  		prev = current;
  		current = next;
  	}
  	*begin_list = prev;
  }
  