Function

GLibstrv_contains

since: 2.44

Declaration

gboolean
g_strv_contains (
  const gchar* const* strv,
  const gchar* str
)

Description

Checks if strv contains str. strv must not be NULL.

Available since: 2.44

Parameters

strv

Type: const gchar* const*

A NULL-terminated array of strings.

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

Type: const gchar*

A string.

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

Return value

Type: gboolean

TRUE if str is an element of strv, according to g_str_equal().