compare-int.h File Reference

Comparison functions for pointers to integers. More...


Functions

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


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.


Function Documentation

int int_compare ( void *  location1,
void *  location2 
)

Compare the integer values pointed at by two pointers.

Parameters:
location1 Pointer to the first value to compare.
location2 Pointer 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 int_equal ( void *  location1,
void *  location2 
)

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

Parameters:
location1 Pointer to the first value to compare.
location2 Pointer to the second value to compare.
Returns:
Non-zero if the two values are equal, zero if the two values are not equal.


Generated on Sun Sep 14 03:08:02 2008 for C Algorithms by  doxygen 1.5.5