Skip to content
Snippets Groups Projects

Draft:queue_init

Closed gaetan.siffert requested to merge 1-add-queue_init into main
2 files
+ 8
0
Compare changes
  • Side-by-side
  • Inline
Files
2
+ 7
0
@@ -4,3 +4,10 @@ bool is_empty(queue q){
return (q.tail<0);
}
void queue_init(queue *q)
{
q->capacity = -1;
q->tail = -1;
q->data = malloc(sizeof(int));
return q;
}
\ No newline at end of file
Loading