29 lines
1.3 KiB
C
29 lines
1.3 KiB
C
/* ************************************************************************** */
|
|
/* */
|
|
/* ::: o_ :::::: ::: */
|
|
/* push_swap.h :+: / :+::+: :+: */
|
|
/* +:+ > +:++:+ +:+ */
|
|
/* By: whaffman <whaffman@student.codam.nl> +#+ +:+ +#++#++:++#++ */
|
|
/* +#+ +#+#+ +#++#+ +#+ \o/ */
|
|
/* Created: 2024/11/04 13:58:35 by whaffman #+#+# #+#+# #+# #+# | */
|
|
/* Updated: 2024/11/06 20:10:14 by whaffman ### ### ### ### / \ */
|
|
/* */
|
|
/* ************************************************************************** */
|
|
|
|
#ifndef PUSH_SWAP_H
|
|
# define PUSH_SWAP_H
|
|
|
|
# include "libft.h"
|
|
|
|
int new_element(t_list **stack, const char *str);
|
|
t_list *ft_lstat(t_list *list, int n);
|
|
void print_stack(const char *name, t_list *stack);
|
|
void print_stacks(t_list *stack_a, t_list *stack_b);
|
|
|
|
void push(t_list **stack_1, t_list **stack_2);
|
|
void rotate(t_list **stack);
|
|
void reverse_rotate(t_list **stack);
|
|
void swap(t_list **stack);
|
|
|
|
#endif
|