25 lines
1.0 KiB
C
25 lines
1.0 KiB
C
|
/* ************************************************************************** */
|
||
|
/* */
|
||
|
/* ::: :::::::: */
|
||
|
/* ft_s.c :+: :+: :+: */
|
||
|
/* +:+ +:+ +:+ */
|
||
|
/* By: cchauvet <cchauvet@student.42angouleme.fr +#+ +:+ +#+ */
|
||
|
/* +#+#+#+#+#+ +#+ */
|
||
|
/* Created: 2022/12/09 18:00:12 by cchauvet #+# #+# */
|
||
|
/* Updated: 2022/12/09 18:05:06 by cchauvet ### ########.fr */
|
||
|
/* */
|
||
|
/* ************************************************************************** */
|
||
|
|
||
|
#include "pushswap.h"
|
||
|
|
||
|
static void ft_s (t_tab tab)
|
||
|
{
|
||
|
ft_swap(tab + 0, tab + 1);
|
||
|
}
|
||
|
|
||
|
void ft_sa(t_tab tab)
|
||
|
{
|
||
|
ft_s(tab);
|
||
|
ft_putstr("sa\n");
|
||
|
}
|