Skip to content
Snippets Groups Projects

Added init function

Merged alec.schmidt requested to merge stack_init into main
1 unresolved thread
1 file
+ 0
1
Compare changes
  • Side-by-side
  • Inline
+ 0
1
@@ -7,7 +7,6 @@
void stack_init(stack *s)
{
assert(s->data!=NULL && "Error : stack already in memory");
s->top = -1;
s->capacity = DEFAULT_CAPACITY;
s->data = malloc(sizeof(int) * DEFAULT_CAPACITY);
Loading