EC_CONFIG_DUP(3)

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

πŸ’– EC_CONFIG_DUP(3) πŸ’–

okay bestie, welcome to the Libecoli Programmer's Manual ✨ this one's short and sweet, so buckle up πŸŽ€


🌸 NAME 🌸

ec_config_dup β€” Duplicate a configuration. that's it, that's the whole job πŸ’…


✨ SYNOPSIS ✨

#include <ecoli/config.h>

struct ec_config * ec_config_dup(
    const struct ec_config   *config   /* The configuration to duplicate. */
);

so you pull in <ecoli/config.h> and then you call ec_config_dup with one thing: config, which is a const struct ec_config * and it's literally just the configuration you wanna duplicate 🫢 no cap.


πŸ¦‹ STRUCTURES πŸ¦‹

here's the little guy holding all the configuration data πŸ‘‘

struct ec_config {
    union ec_config::@165033305204240054252215261010262276266146032272  @204272232073016241350260013126061051223010235320;
};
okay so like, yes, that union member name is genuinely that unhinged. don't touch it, don't "fix" it, don't look at it too long πŸ’€ it's a structure storing the configuration data, periodt.

πŸ‘‘ RETURN VALUE πŸ‘‘

you get back the duplicated configuration πŸ’– and if things go sideways you get NULL on error β€” and btw errno is set, so go check it, bestie 😭


πŸ”₯ SEE ALSO πŸ”₯

the whole friend group, fr fr:


Copyright (C) 2010-2026 Olivier Matz, Robin Jarry. πŸ’œ


and that's the whole vibe check, bestie β€” this page came from libecoli, dated 2026-06-11, and honestly? iconic. go duplicate some configs πŸ’…βœ¨πŸ¦‹

πŸ“¦ where this page comes from