OS Manuals

strsort(3ast)

strsort - array heap sort

STRSORT(3ast) STRSORT(3ast)

strsort - array heap sort

#include <ast.h>
void    strsort(char** array, int elements, int (*compare)(const char* a, const char* b));

strsort does a heap sort on the array of pointers array with elements elements using the comparison function compare. compare returns -1 if a is lexicographically less than b, 0 if a is equal to b, and 1 if a is lexicographically greater than b.

ksh 1.0.10-r37 · os · ingested 2026-10-11