-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_raise.c
37 lines (32 loc) · 1.35 KB
/
ft_raise.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_raise.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: lgasc <lgasc@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/01/31 15:29:37 by lgasc #+# #+# */
/* Updated: 2024/02/27 11:14:34 by lgasc ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft/libft.h"
#include "stacks.h"
__attribute__ ((nonnull))
void ft_raise_a(struct s_stacks *const stacks)
{
ft_putendl_fd("ra", 1);
ft_ilstrot(&stacks->primary);
}
__attribute__ ((nonnull))
void ft_raise_b(struct s_stacks *const stacks)
{
ft_putendl_fd("rb", 1);
ft_ilstrot(&stacks->secondary);
}
__attribute__ ((nonnull))
void ft_rake_raise(struct s_stacks *const stacks)
{
ft_putendl_fd("rr", 1);
ft_ilstrot(&stacks->primary);
ft_ilstrot(&stacks->secondary);
}