mirror of
https://github.com/DavidGailleton/42-Push_Swap.git
synced 2026-01-27 00:41:57 +00:00
Add index in t_stack + indexer function to add it
This commit is contained in:
@@ -21,6 +21,7 @@ t_stack *new_stack(int value)
|
||||
if (!new)
|
||||
return (NULL);
|
||||
new->value = value;
|
||||
new->index = -1;
|
||||
new->next = NULL;
|
||||
new->previous = NULL;
|
||||
return (new);
|
||||
|
||||
Reference in New Issue
Block a user