| 102 | } |
| 103 | |
| 104 | struct queue get_queue() { |
| 105 | struct queue q; |
| 106 | |
| 107 | q.data = calloc(4, sizeof(struct point)); |
| 108 | q.front = 0; |
| 109 | q.back = 0; |
| 110 | q.capacity = 4; |
| 111 | |
| 112 | return q; |
| 113 | } |
| 114 | |
| 115 | int queue_empty(struct queue q) { |
| 116 | return q.front == q.back; |