arm_ucos/src/common/queue.c
/********************************************************************/
/* 
 * Peek into the queue and return pointer to first (oldest) entry.
 * The queue is not modified
 *
 * Parameters:
 *  q       Pointer to queue structure
 *
 * Return Value:
 *  Node at head of queue - NULL if queue is empty
 */
Peek into the queue and return pointer to first (oldest) entry.
The queue is not modified

q       Pointer to queue structure

Return Value:
Node at head of queue - NULL if queue is empty
Peek into the queue and return pointer to first ( oldest ) entry . The queue is not modified q Pointer to queue structure Return Value : Node at head of queue - NULL if queue is empty
QNODE*
queue_peek(QUEUE *q)
{
    return q->head;
}
QNODE * queue_peek ( QUEUE * q ) { return q -> head ; }
Peek into the queue and return pointer to first (oldest) entry.
Peek into the queue and return pointer to first ( oldest ) entry .