daily pastebin goal
1%
SHARE
TWEET

Untitled

a guest Jan 18th, 2019 57 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. void    ft_lstrev(t_piece **lst)
  2. {
  3.     t_piece *prev  = NULL;
  4.     t_piece *current = *lst;
  5.     t_piece *next;
  6.  
  7.     while (current != NULL)
  8.     {
  9.         next  = current->next;
  10.         current->next = prev;
  11.         prev = current;
  12.         current = next;
  13.     }
  14.     *lst = prev;
  15. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top