Function

GLibstr_equal

Declaration [src]

gboolean
g_str_equal (
  gconstpointer v1,
  gconstpointer v2
)

Description [src]

Compares two strings for byte-by-byte equality and returns TRUE if they are equal. It can be passed to g_hash_table_new() as the key_equal_func parameter, when using non-NULL strings as keys in a GHashTable.

This function is typically used for hash table comparisons, but can be used for general purpose comparisons of non-NULL strings. For a NULL-safe string comparison function, see g_strcmp0().

Parameters

v1 gconstpointer
 

A key.

v2 gconstpointer
 

A key to compare with v1

Return value

Returns: gboolean
 

TRUE if the two keys match.