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

Update stack.c

parent cee32597
No related branches found
No related tags found
1 merge request!15"Add get length function"
This commit is part of merge request !15. Comments created here will be created in the context of that merge request.
......@@ -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