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. |