EC_STRVEC_SORT(3)
π EC_STRVEC_SORT(3) π
okay bestie, welcome to the Libecoli Programmer's Manual β¨ this one's short but it's a whole vibe, let's get into it π¦
β¨ NAME β¨
ec_strvec_sort β sort the string vector, no cap π
πΈ SYNOPSIS πΈ
#include <ecoli/strvec.h>
void ec_strvec_sort(
struct ec_strvec *strvec, /* The pointer to the first string vector. */
int(*)(const char *s1, const char *s2) str_cmp /* The sort function to use. If NULL, use strcmp. */
);
so like, you hand it a struct ec_strvec * called strvec β that's the pointer to the first string vector, bestie, she's the main character π β and then you also pass str_cmp, which is the sort function to use. and if you pass NULL there? iconic, it just falls back to strcmp π
easy.
π§ DESCRIPTION π§
ngl the whole lore is one line and it ate: Attributes are not compared. π
that's it. that's the tea. if your strings got attrs, they are NOT getting a vibe check during the sort. periodt π
π SEE ALSO π
the whole friend group, fr fr β go read these too:
ec_strvec_set_attrs(3)ec_strvec_del_last(3)ec_strvec_val(3)ec_strvec_cmp(3)ec_strvec_from_array(3)ec_strvec_get_attrs(3)ec_strvec_dup(3)ec_strvec_set(3)ec_strvec_len(3)ec_strvec_dump(3)ec_strvec_sh_lex_str(3)ec_strvec_add(3)ec_strvec_free(3)ec_strvec(3)ec_strvec_ndup(3)
π COPYRIGHT π
Copyright (C) 2010-2026 Olivier Matz, Robin Jarry.
k that's the page π«Ά go sort something, you're doing amazing sweetie πβ¨πΈ
this was libecoli, dated 2026-06-11, signing off bestie β EC_STRVEC_SORT(3) slay π
ππ¦
π¦ where this page comes from
- fedora 44: libecoli-devel 0.11.7-1.fc44 Β· BSD-3-Clause AND LicenseRef-Fedora-Public-Domain
- fedora 44: libecoli-devel 0.11.7-1.fc44 Β· BSD-3-Clause AND LicenseRef-Fedora-Public-Domain
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms