HSORT(3)
β¨ NAME β¨
okay so bestie, this is the HSORT(3) page from the Library Functions Manual, and the NAME line is giving hsort - array heap sort π«Ά. yes, the page name says hsort while the actual function is strsort β weβre keeping both exactly as printed, no cap π
.
πΈ SYNOPSIS πΈ
hereβs the whole vibe in code form β literally copy it exactly:
#include <ast.h>
void strsort(char** array, int elements, int (*compare)(const char* a, const char* b));
π¦ DESCRIPTION π¦
okay so strsort does a heap sort on the array of pointers array with elements elements, using the comparison function compare π₯.
and compare is the little referee, fr fr β it returns:
-1ifais lexicographically less thanb0ifais equal tob1ifais lexicographically greater thanb
thatβs the whole compare contract, bestie β no extra plot twists π.
and thatβs the whole HSORT(3) page from the Library Functions Manual, bestie π β the footer was just the page tag with no separate source/version or date info, so weβre not inventing any. periodt. π
π¦ where this page comes from
- opensuse-leap 16.0: ksh-devel 93vu-bp160.1.33 Β· CPL-1.0
- opensuse-leap 16.0: ksh-devel 93vu-bp160.1.33 Β· CPL-1.0
- opensuse-leap 16.0: ksh-devel 93vu-bp160.1.33 Β· CPL-1.0
- opensuse-leap 16.0: ksh-devel 93vu-bp160.1.33 Β· CPL-1.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms