Method

GLibQueuepeek_head

Declaration

gpointer
g_queue_peek_head (
  GQueue* queue
)

Description

Returns the first element of the queue.

Return value

Type: gpointer

The data of the first element in the queue, or NULL if the queue is empty.

The returned data is owned by the instance.
The return value can be NULL.