1 #include "gqueue.h" 2 3 /** Return the address of first (least recently pushed) element in the 4 * queue. */ gqueue_top(const struct gqueue * q)5 void* gqueue_top(const struct gqueue* q) 6 { 7 return (q->head == 0) ? 0 : q->head->data; 8 } 9