ATLAS Offline Software
Functions
compare-int.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int int_equal (void *location1, void *location2)
 Compare the integer values pointed at by two pointers to determine if they are equal. More...
 
int int_compare (void *location1, void *location2)
 Compare the integer values pointed at by two pointers. More...
 

Detailed Description

Comparison functions for pointers to integers.

To find the difference between two values pointed at, use int_compare.

To find if two values pointed at are equal, use int_equal.

Definition in file compare-int.h.

Function Documentation

◆ int_compare()

int int_compare ( void *  location1,
void *  location2 
)

Compare the integer values pointed at by two pointers.

Parameters
location1Pointer to the first value to compare.
location2Pointer to the second value to compare.
Returns
A negative value if the first value is less than the second value, a positive value if the first value is greater than the second value, zero if they are equal.

◆ int_equal()

int int_equal ( void *  location1,
void *  location2 
)

Compare the integer values pointed at by two pointers to determine if they are equal.

Parameters
location1Pointer to the first value to compare.
location2Pointer to the second value to compare.
Returns
Non-zero if the two values are equal, zero if the two values are not equal.