### Method

# GLib Queue peek_nth

since: 2.4

#### Declaration

    gpointer
    g_queue_peek_nth (
      GQueue* queue,
      guint n
    )

#### Description

Returns the `n`‘th element of `queue`.

Available since: 2.4

#### Parameters

`n`

  Type: `guint`

  The position of the element.

#### Return value

Type: `gpointer`

The data for the `n`‘th element of `queue`, or `NULL` if `n` is off the end of `queue`.

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