int_equal


Description:

[ CCode ( cname = "g_int_equal" ) ]
public EqualFunc<int?> int_equal

Compares the two int values being pointed to 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 pointers to integers as keys in a GenericSet.

Note that this function acts on pointers to int, not on int directly: if your hash table's keys are of the form `GINT_TO_POINTER (n)`, use direct_equal instead.

Parameters:

v1

a pointer to a int key

v2

a pointer to a int key to compare with v1

Returns:

true if the two keys match.


Namespace: GLib
Package: glib-2.0