Function rcutils_string_array_sort_compare

Function Documentation

int rcutils_string_array_sort_compare(const void *lhs, const void *rhs)

Lexicographic comparer for pointers to string pointers.

This functions compares pointers to string pointers lexicographically ascending.

Parameters:
  • lhs[in] pointer to the first string pointer.

  • rhs[in] pointer to the second string pointer.

Returns:

<0 if lhs is lexicographically lower, or

Returns:

0 if the strings are the same, or

Returns:

>0 if lhs is lexicographically higher.