EC_CONFIG_STRING(3)

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

✨ EC_CONFIG_STRING β€” bestie, let's make a string πŸ’–

okay so you're in the Libecoli Programmer's Manual (yes the whole manual, hi, welcome, come sit with me 🫢) and you wanna build a config value that's literally just a string. that's it. that's the function. it's giving "small but mighty" ✨


🌸 NAME 🌸

ec_config_string β€” create a string configuration value πŸ’…

like. it makes a string. a config one. no cap.


πŸŽ€ SYNOPSIS πŸŽ€

#include <ecoli/config.h>

struct ec_config * ec_config_string(
    /*
     * The string value to be set. The string is copied into the configuration
     * object.
     */
    const char   *string
);

ok so real talk about that string argument, because this part is important: it's the string value you wanna set, and the string gets copied into the configuration object 🫢. so you're not handing over your pointer for safekeeping, you're handing over a copy of what it points at. the config object does its own thing with it. periodt.


πŸ’– RETURN VALUE πŸ’–

you get the configuration object back. iconic. πŸ‘‘

but if things go sideways you get NULL on error β€” and bestie, errno is set, so go check it, don't just sit there staring at your NULL like 😭


πŸ¦‹ SEE ALSO πŸ¦‹

the whole friend group, fr fr:


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


and that's the whole page bestie 🌈 from libecoli, dated 2026-06-11, filed under EC_CONFIG_STRING(3) β€” go forth and string, you absolute main character πŸ’œπŸ¦‹

πŸ“¦ where this page comes from