ListSort
ListSort
Description
Sort given list with given comparator using quicksort algorithm.
Parameters
| Name | Direction | Description |
|---|---|---|
l |
in,out | List to be sorted. |
compare |
in | Compare function. Signature and behaviour must be similar to that of strcmp. |
Success
Returns v on success.
Failure
Returns NULL otherwise.
Usage example (Cross-references)
Usage examples (Cross-references)
- In
ListInt.c:178:
// Advanced functions
case LIST_INT_SORT : {
ListSort(list, compare_ints);
break;
}
Last updated on