-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathft_refurb.c
34 lines (30 loc) · 1.33 KB
/
ft_refurb.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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_refurb.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: lgasc <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/01/31 15:29:49 by lgasc #+# #+# */
/* Updated: 2024/02/27 11:14:18 by lgasc ### ########.fr */
/* */
/* ************************************************************************** */
#include "stacks.h"
__attribute__ ((nonnull))
void ft_refurb_a(struct s_stacks *const stacks)
{
ft_putendl_fd("rra", 1);
ft_ilstrrot(&stacks->primary);
}
__attribute__ ((nonnull))
void ft_refurb_b(struct s_stacks *const stacks)
{
ft_putendl_fd("rrb", 1);
ft_ilstrrot(&stacks->secondary);
}
__attribute__ ((nonnull))
void ft_rake_refurb(struct s_stacks *const stacks)
{
ft_putstr_fd("rrr\n", 1);
(ft_ilstrrot(&stacks->primary), ft_ilstrrot(&stacks->secondary));
}