31 lines
1.1 KiB
C
31 lines
1.1 KiB
C
/* ************************************************************************** */
|
|
/* */
|
|
/* ::: :::::::: */
|
|
/* test.c :+: :+: :+: */
|
|
/* +:+ +:+ +:+ */
|
|
/* By: cchauvet <cchauvet@student.42angouleme.fr +#+ +:+ +#+ */
|
|
/* +#+#+#+#+#+ +#+ */
|
|
/* Created: 2022/11/23 16:43:32 by cchauvet #+# #+# */
|
|
/* Updated: 2022/11/28 17:15:24 by cchauvet ### ########.fr */
|
|
/* */
|
|
/* ************************************************************************** */
|
|
|
|
#include <stdio.h>
|
|
#include "pushswap.h"
|
|
|
|
int main()
|
|
{
|
|
int tab[] = {1,2,3,4,-1};
|
|
int i;
|
|
|
|
i = -1;
|
|
while (tab[++i] != -1)
|
|
printf("%d, ", tab[i]);
|
|
printf("\n");
|
|
ft_ra(tab);
|
|
printf("\n");
|
|
i = -1;
|
|
while (tab[++i] != -1)
|
|
printf("%d, ", tab[i]);
|
|
}
|