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

Update stack.c

parent 949f7b8e
Branches
Tags
1 merge request!15"Add get length function"
......@@ -24,4 +24,9 @@ void stack_clone(stack s, stack *clone) {
for (int i = 0; i <= s.top && i < s.capacity; i++) {
clone->data[i] = s.data[i];
}
}
\ No newline at end of file
}
int get_length(stack *pile)
{
return pile->capacity;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment