EC_CONFIG_DICT_SET(3)

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

πŸ’– EC_CONFIG_DICT_SET(3) πŸ’–

okay so bestie, we're in the Libecoli Programmer's Manual and today's main character is ec_config_dict_set β€” the girl whose whole job is putting a value into a hash table configuration. that's it. that's the vibe. ✨


🌸 NAME 🌸

ec_config_dict_set β€” Set a value in a hash table configuration.


πŸŽ€ SYNOPSIS πŸŽ€

#include <ecoli/config.h>

int ec_config_dict_set(
    struct ec_config   *dict,   /* The hash table configuration. */
    const char         *key,    /* The key to update. */
    /*
     * The value to set. The value object will be freed when freeing the dict
     * object. On error, the value object is also freed.
     */
    struct ec_config   *value
);

like, look at her. three args, zero drama (okay a little drama, the value ownership thing is giving unhinged but we'll get there). πŸ’…


πŸ¦‹ STRUCTURES πŸ¦‹

Structure storing the configuration data.

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

no cap, that union name is literally how it came out of the tooling and we are NOT touching it. she's iconic as she is. 🫢


⭐ RETURN VALUE ⭐

  • 0 on success β€” slay, we ate πŸ’–
  • -1 on error β€” and errno is set, so go check it, bestie, don't just stand there 😭

πŸ”₯ SEE ALSO πŸ”₯

the whole friend group, fr fr:


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


and that's the whole page, periodt πŸ’œ this was libecoli, dated 2026-06-11, and yes she's still EC_CONFIG_DICT_SET(3) β€” go set some dict values, bestie, you got this 🧚✨

πŸ“¦ where this page comes from