Skip to content
Snippets Groups Projects
Commit ac0f4ad3 authored by gaetan.siffert's avatar gaetan.siffert
Browse files

Update stack.c

parent cee32597
Branches
Tags
1 merge request!15"Add get length function"
......@@ -26,7 +26,7 @@ void stack_clone(stack s, stack *clone) {
}
}
int get_length(stack *pile)
int get_length(stack s)
{
return pile->capacity;
return s->top + 1;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment