29 lines
1.2 kB
1/* ************************************************************************** */
2/* */
3/* ::: :::::::: */
4/* op_push.c :+: :+: :+: */
5/* +:+ +:+ +:+ */
6/* By: ohaponiu <marvin@42.fr> +#+ +:+ +#+ */
7/* +#+#+#+#+#+ +#+ */
8/* Created: 2026/04/24 09:57:20 by ohaponiu #+# #+# */
9/* Updated: 2026/04/29 16:01:44 by ohaponiu ### ########.fr */
10/* */
11/* ************************************************************************** */
12
13#include "operations.h"
14#include "stack.h"
15#include <libft.h>
16
17void op_pa(t_stack *a, t_stack *b, t_ops *ops)
18{
19 stack_push(a, b);
20 ft_printf("pa\n");
21 ops->pa++;
22}
23
24void op_pb(t_stack *a, t_stack *b, t_ops *ops)
25{
26 stack_push(b, a);
27 ft_printf("pb\n");
28 ops->pb++;
29}