MCPcopy Create free account
hub / github.com/algorithm-archivists/algorithm-archive / get_queue

Function get_queue

contents/flood_fill/code/c/flood_fill.c:104–113  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

102}
103
104struct 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
115int queue_empty(struct queue q) {
116 return q.front == q.back;

Callers 1

queue_fillFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected