Skip to content
Snippets Groups Projects
Commit d76dc10a authored by Alec's avatar Alec
Browse files

removed assert

parent 2fc06c51
No related branches found
No related tags found
1 merge request!8Added init function
This commit is part of merge request !8. Comments created here will be created in the context of that merge request.
...@@ -7,7 +7,6 @@ ...@@ -7,7 +7,6 @@
void stack_init(stack *s) void stack_init(stack *s)
{ {
assert(s->data!=NULL && "Error : stack already in memory");
s->top = -1; s->top = -1;
s->capacity = DEFAULT_CAPACITY; s->capacity = DEFAULT_CAPACITY;
s->data = malloc(sizeof(int) * DEFAULT_CAPACITY); s->data = malloc(sizeof(int) * DEFAULT_CAPACITY);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment