Site hosted by Angelfire.com: Build your free website today!

(c) 2002 - Pedro Flynn <pflynn@microsoftsucks.org>

comparefunc


typedef
int (comparefunc)(const void*, const void*);




    Functions of the type comparefunc are functions that provides a way to the YACLib's data structures to compare it's elements. A comparefunc is a user-defined function that returns an integer value. The return value is 0 if the two elements being compared are equal, 1 if the element passed as the first argument to the function is greater than the element passed as the second argument, or -1 if the first element is smallest than the second.