Skip to content
Snippets Groups Projects
Verified Commit a3e230bd authored by orestis.malaspin's avatar orestis.malaspin
Browse files

typo

parent d8f12907
Branches
No related tags found
No related merge requests found
Pipeline #15002 passed
...@@ -75,8 +75,8 @@ bool stack_is_empty(stack s); // reutrn NULL == stack; ...@@ -75,8 +75,8 @@ bool stack_is_empty(stack s); // reutrn NULL == stack;
void stack_push(stack *s, int val) { void stack_push(stack *s, int val) {
element *elem = malloc(sizeof(*elem)); element *elem = malloc(sizeof(*elem));
elem->data = val; elem->data = val;
elem->next = *stack; elem->next = *s;
stack = elem; s = elem;
} }
``` ```
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment