Function

GLibstrv_contains

Declaration [src]

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

Description [src]

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

Available since:2.44

Parameters

strv const gchar* const*
 

A NULL-terminated array of strings.

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

A string.

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

Return value

Returns: gboolean
 

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