30 lines
1.2 KiB
C
30 lines
1.2 KiB
C
/* ************************************************************************** */
|
|
/* */
|
|
/* ::: :::::::: */
|
|
/* test.c :+: :+: :+: */
|
|
/* +:+ +:+ +:+ */
|
|
/* By: cchauvet <cchauvet@student.42angouleme.fr +#+ +:+ +#+ */
|
|
/* +#+#+#+#+#+ +#+ */
|
|
/* Created: 2022/12/07 13:38:08 by cchauvet #+# #+# */
|
|
/* Updated: 2022/12/07 14:14:21 by cchauvet ### ########.fr */
|
|
/* */
|
|
/* ************************************************************************** */
|
|
|
|
#include "pushswap.h"
|
|
|
|
int main()
|
|
{
|
|
unsigned int tab_a[10] = {0, 1, 2, 3, 4, STOP_VALUE};
|
|
unsigned int tab_b[10] = {5, STOP_VALUE};
|
|
int i;
|
|
|
|
printf("tab_a\n");
|
|
i = 0;
|
|
while (tab_a[i] != STOP_VALUE)
|
|
printf("%d\n", tab_a[i++]);
|
|
ft_pa(tab_a, tab_b);
|
|
i = 0;
|
|
while (tab_a[i] != STOP_VALUE)
|
|
printf("%d\n", tab_a[i++]);
|
|
}
|