hewow owo
added header, libft and all basic interactions with stack
This commit is contained in:
21
srcs/ps_push.c
Normal file
21
srcs/ps_push.c
Normal file
@@ -0,0 +1,21 @@
|
||||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* ps_push.c :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: tmaze <tmaze@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2019/02/21 15:59:46 by tmaze #+# #+# */
|
||||
/* Updated: 2019/02/21 16:06:04 by tmaze ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#include "push_swap.h"
|
||||
|
||||
void ps_push(t_stack **s1, t_stack **s2)
|
||||
{
|
||||
t_stack *tmp;
|
||||
|
||||
tmp = ps_stkpop(s2);
|
||||
ps_stkpsh(s1, tmp);
|
||||
}
|
Reference in New Issue
Block a user