GLib.PtrArray.ref
Description: Reference for GLib.PtrArray.ref

### Function

# GLib PtrArrayref

since: 2.22

#### Declaration [src]

    GPtrArray*
    g_ptr_array_ref (
      GPtrArray* array
    )

#### Description [src]

Atomically increments the reference count of `array` by one. This function is thread-safe and may be called from any thread.

Available since: 2.22

This function is not directly available to language bindings.

#### Parameters

`array`

  Type: An array of `gpointer`

  A pointer array.

  The data is owned by the caller of the function.

#### Return value

Type: An array of `gpointer`

The passed in `GPtrArray`.

The caller of the function takes ownership of the data, and is responsible for freeing it.