arm_ucos/src/common/queue.c
/********************************************************************/
/* 
 * Check for an empty queue
 *
 * Parameters:
 *  q       Pointer to queue structure
 * 
 * Return Value:
 *  1 if Queue is empty
 *  0 otherwise
 */
Check for an empty queue

q       Pointer to queue structure

Return Value:
1 if Queue is empty
0 otherwise
Check for an empty queue q Pointer to queue structure Return Value : 1 if Queue is empty 0 otherwise
int
queue_isempty(QUEUE *q)
{
    return (q->head == NULL);
}
int queue_isempty ( QUEUE * q ) { return ( q -> head == NULL ) ; }
Check for an empty queue
Check for an empty queue