Skip to content
Snippets Groups Projects

"Add get length function"

Merged gaetan.siffert requested to merge 8-add-get-length-function into main
3 unresolved threads
1 file
+ 6
1
Compare changes
  • Side-by-side
  • Inline
+ 6
1
@@ -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;
}
Loading