axl main logo
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Modules Pages
int axl_list_equal_int ( axlPointer  a,
axlPointer  b 
)

Equal function that is prepared to receive to integers and return if they are equal.

It is assumed that integers are stored in the list using the following:

1 axl_list_add (list, INT_TO_PTR (integer));

You can use this function to create an axlList that stores integer values as follows:

1 list = axl_list_new (axl_list_equal_int, NULL);

The list created with this function will order data from small to big values.

Parameters
aA reference to the first integer.
bA reference to the second integer.
Returns
0 if values received are equal, and 1 if b is greater than b. Otherwise -1 is returned.

References PTR_TO_INT.