GLib.SList.nth
Description: Reference for GLib.SList.nth

### Function

# GLib SListnth

#### Declaration

    GSList*
    g_slist_nth (
      GSList* list,
      guint n
    )

#### Description

Gets the element at the given position in a `GSList`.

This function is not directly available to language bindings.

#### Parameters

`list`

  Type: A list of `gpointer`

  A `GSList`.

  The data is owned by the caller of the function.

`n`

  Type: `guint`

  The position of the element, counting from 0

#### Return value

Type: A list of `gpointer`

The element, or `NULL` if the position is off the end of the `GSList`.

The data is owned by the called function.