MEMISORT(3pub)
π MEMISORT(3pub) π
okay bestie, welcome to the memisort page, straight outta the C Programmer's Manual (section 3pub, iykyk). this is a publib moment fr fr π«Ά
β¨ NAME β¨
memisort β insert new element into sorted array πΈ
β¨ SYNOPSIS β¨
#include <publib.h>
void memisort(void *base, size_t nelem, size_t elsize, const void *new,
int (*comp)(const void *, const void *));
β¨ DESCRIPTION β¨
so like, memisort takes a sorted array and inserts a new element into it, dropping it in exactly the right spot so the array stays sorted. no reshuffling chaos, no drama, just vibes and order β¨
the params base, elsize, nelem, and comp are literally the same as for qsort(3) β same energy, same meaning, no notes π
and new is a pointer to the new element you wanna sneak in there π
β¨ SEE ALSO β¨
β¨ AUTHOR β¨
Lars Wirzenius (lars.wirzenius@helsinki.fi) β the icon, the moment, the legend ππ
π that's the whole page bestie, you ate it, periodt π
Publib Β· C Programmer's Manual Β· MEMISORT(3pub) β mwah, kiss the manual goodbye, ily πβ¨π¦πΈ
π¦ where this page comes from
- debian bookworm: publib-dev 0.40-3+b1 Β· BSD-2-Clause
- debian trixie: publib-dev 0.40-4 Β· BSD-2-Clause
- ubuntu jammy: publib-dev 0.40-3build1 Β· BSD-2-Clause
- ubuntu noble: publib-dev 0.40-3build1 Β· BSD-2-Clause
- ubuntu questing: publib-dev 0.40-4
- ubuntu resolute: publib-dev 0.40-4build1 Β· BSD-2-Clause
- ubuntu stonking: publib-dev 0.40-4build1 Β· BSD-2-Clause
- Copyright (c) 1994-2006 Lars Wirzenius. All rights reserved
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms