Str.strvEqual

Checks if strv1 and strv2 contain exactly the same elements in exactly the same order. Elements are compared using g_str_equal(). To match independently of order, sort the arrays first (using g_qsort_with_data() or similar).

Two empty arrays are considered equal. Neither strv1 not strv2 may be NULL.

struct Str
static
bool
strvEqual
(
string strv1
,
string strv2
)

Parameters

strv1 string

a NULL-terminated array of strings

strv2 string

another NULL-terminated array of strings

Return Value

Type: bool

TRUE if strv1 and strv2 are equal

Meta

Since

2.60