-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstack_copy.c
18 lines (17 loc) · 1.03 KB
/
stack_copy.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* stack_copy.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: yst-laur <[email protected] +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/03/09 14:25:22 by yst-laur #+# #+# */
/* Updated: 2022/03/09 14:25:24 by yst-laur ### ########.fr */
/* */
/* ************************************************************************** */
#include "push_swap.h"
void stack_copy(int *to_copy, int *copy_to, int to_copy_size)
{
while (--to_copy_size >= 0)
copy_to[to_copy_size] = to_copy[to_copy_size];
}