Program Base Library Functions

int pblSetStringCompareFunction

( const void* left,
  const void* right )

Compares two '\0' terminated strings.

Documentation

Compares two '\0' terminated strings.

Can be used as compare function for sets in case '\0' terminated strings are inserted into the set.

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 you add char * pointers 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.

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