Add index in t_stack + indexer function to add it

This commit is contained in:
2026-01-14 11:15:31 +01:00
parent 82111f59ad
commit 52220b5b49
9 changed files with 91 additions and 2 deletions

View File

@@ -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);