ListSort

Table of Contents

ListSort

Description

Sort given list with given comparator using quicksort algorithm.

Parameters

NameDirectionDescription
lin,outList to be sorted.
compareinCompare function. Signature and behaviour must be similar to that of strcmp.

Success

Returns v on success.

Failure

Returns NULL otherwise.

Usage example (Cross-references)

    // Advanced functions
    case LIST_INT_SORT : {
    ListSort(list, compare_ints);
    break;
    }

Share :