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

corrected typo

parent 5da4b703
Branches
No related tags found
No related merge requests found
Pipeline #36578 passed
...@@ -336,7 +336,7 @@ bool stack_is_empty(stack s); // return NULL == s.top; ...@@ -336,7 +336,7 @@ bool stack_is_empty(stack s); // return NULL == s.top;
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 = *s; elem->next = s->top;
s->top = elem; s->top = elem;
} }
``` ```
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment