Skip to content

StrSort

Description

Sort the characters of the string in place using the provided comparator. Same contract as VecSort, specialised for the char element.

Parameters

Name Direction Description
str in,out Str handle.
compare in Comparator with strcmp-style return.

Success

Characters are now in non-decreasing order according to compare. The string’s length is unchanged.

Failure

Function cannot fail. A NULL comparator or invalid string is a caller bug and aborts via LOG_FATAL.

Usage example (Cross-references)

Usage examples (Cross-references)
No external code usages found in the scanned files.
Last updated on