EC_CONFIG_LIST_DEL(3)

πŸ“¦
version 0.11.7 Β· 5 versions
, in fedora 44

πŸ’– EC_CONFIG_LIST_DEL πŸ’–

okay so bestie, this is ec_config_list_del from section 3 of the Libecoli Programmer's Manual β€” it's the one that ✨ yeets an element out of a list ✨. iykyk.


🌸 NAME 🌸

ec_config_list_del β€” Remove an element from a list.

no cap, that's literally it. one job. does it beautifully. πŸ‘‘


πŸŽ€ SYNOPSIS πŸŽ€

first you gotta let the compiler know, so:

#include <ecoli/config.h>

then the vibe is:

int ec_config_list_del(
    struct ec_config   *list,    /* The list configuration. */
    struct ec_config   *config   /* The element to remove from the list. */
);

like, you hand it the list, you hand it the element, and boom. gone. πŸ’…


πŸ¦‹ DESCRIPTION πŸ¦‹

so here's the tea: the element is freed and should not be accessed. periodt.

that means once this function does its thing, that config pointer is giving ghost. do not touch it. do not peek at it. do not "just check one field real quick". it's gone, bestie, and touching it is undefined behaviour's favourite hobby. 🫢


🧚 STRUCTURES 🧚

this is the struct that stores all the configuration data, and yes it looks like a cursed group chat name, we don't ask questions:

struct ec_config {
    union ec_config::@165033305204240054252215261010262276266146032272  @204272232073016241350260013126061051223010235320;
};

copy it exactly, don't try to "clean it up", i am begging you. πŸ™ˆ


⭐ RETURN VALUE ⭐

  • 0 β€” slay, it worked, success ✨
  • -1 β€” uh oh, error, and errno gets set so you can find out why πŸ’€

🌈 SEE ALSO 🌈

the whole friend group, go say hi:


Copyright (C) 2010-2026 Olivier Matz, Robin Jarry.


πŸ“ okay that's the whole page, you're officially educated, go delete some list elements responsibly. mwah πŸ’–

and that's a wrap on this libecoli page, dated 2026-06-11 β€” version info straight from the source, no cap. bye bestie, drink water, free your pointers πŸŒΈβœ¨πŸ¦‹

πŸ“¦ where this page comes from