-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbinshiftdown.c
24 lines (22 loc) · 1.06 KB
/
binshiftdown.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* binshiftdown.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: yst-laur <[email protected] +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/03/09 14:04:32 by yst-laur #+# #+# */
/* Updated: 2022/03/09 14:04:47 by yst-laur ### ########.fr */
/* */
/* ************************************************************************** */
#include "push_swap.h"
void binshiftdown(char **binstack, int stacksize)
{
int index;
index = stacksize;
while (index > 0)
{
ft_strcpy(binstack[index], binstack[index - 1]);
index--;
}
}