Function

GLibPtrArrayis_null_terminated

since: 2.74

Declaration [src]

gboolean
g_ptr_array_is_null_terminated (
  GPtrArray* array
)

Description [src]

Checks whether the array was constructed as NULL-terminated.

This will only return true for arrays constructed by passing true to the null_terminated argument of g_ptr_array_new_null_terminated(). It will not return true for normal arrays which have had a NULL element appended to them.

Available since: 2.74

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: gboolean

True if the array is made to be NULL terminated; false otherwise.