42_push_swap/ft_s.c

25 lines
1.0 KiB
C
Raw Permalink Normal View History

2022-12-09 13:13:15 -05:00
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_s.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: cchauvet <cchauvet@student.42angouleme.fr +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/12/09 18:00:12 by cchauvet #+# #+# */
2022-12-09 13:17:57 -05:00
/* Updated: 2022/12/09 19:15:57 by cchauvet ### ########.fr */
2022-12-09 13:13:15 -05:00
/* */
/* ************************************************************************** */
#include "pushswap.h"
2022-12-09 13:17:57 -05:00
static void ft_s(t_tab tab)
2022-12-09 13:13:15 -05:00
{
ft_swap(tab + 0, tab + 1);
}
2022-12-09 13:17:57 -05:00
void ft_sa(t_tab tab)
2022-12-09 13:13:15 -05:00
{
ft_s(tab);
ft_putstr("sa\n");
}