Program Base Library Functions

int pblSetDefaultCompare

( const void* left,
  const void* right )

Default compare function used if no application specific compare function is specified by the user.

Documentation

Default compare function used if no application specific compare function is specified by the user.

This function compares the values of the pointers directly, i.e. it tests for object identity.

This compare function behaves like the one that can be specified for the C-library function 'qsort'.

The arguments actually passed to the compare function when it is called are addresses of the element pointers added to the set. E.g.: If char * pointers are added to the set, the compare function will be called with char ** pointers as arguments. See the documentation for the C-library function 'qsort' for further information.

Parameters:
left - left element for compare
right - right element for compare
Returns:
int rc < 0: left is smaller than right
int rc == 0: left and right are equal
int rc > 0: left is greater than right

Alphabetic index



This page was generated with the help of DOC++.