Add index in t_stack + indexer function to add it

This commit is contained in:
da7e committed 2026-01-14 11:15:31 +01:00
1 parent 82111f59ad
commit 52220b5b49
9 files changed
+91 -2

No files matched your search

+1
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);