Function

Agsstrv_index

since: 3.0.0

Declaration [src]

gint
ags_strv_index (
  gchar** str_array,
  gchar* str
)

Description [src]

Check by comparing str against str_array items.

Available since: 3.0.0

Parameters

str_array

Type: An array of utf8

The string vector.

The array must be NULL-terminated.
The data is owned by the caller of the function.
Each element is a NUL terminated UTF-8 string.
str

Type: gchar*

The string to match.

The data is owned by the caller of the function.
The value is a NUL terminated UTF-8 string.

Return value

Type: gint

The first matching position or -1, if not found.