str_equal


Description:

public EqualFunc<string> str_equal

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 GenericSet.

Note that this function is primarily meant as a hash table comparison function. For a general-purpose, null-safe string comparison function, see strcmp .

Parameters:

v1

a key

v2

a key to compare with v1

Returns:

true if the two keys match


Namespace: GLib
Package: glib-2.0