EC_CONFIG_BOOL(3)

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

πŸ’– EC_CONFIG_BOOL(3) πŸ’–

okay so bestie, welcome to ec_config_bool from the Libecoli Programmer's Manual β€” yes it's a manual page, yes it's page 3, yes we're making it cute. sit down, grab a strawberry πŸ“, this one's short and sweet and you're gonna slay it.


✨ NAME ✨

ec_config_bool β€” create a boolean configuration value. that's it. that's the whole job. a little bool in a trench coat. iconic behavior honestly πŸ‘‘


🌸 SYNOPSIS 🌸

#include <ecoli/config.h>

struct ec_config * ec_config_bool(
    bool  boolean   /* The boolean value to be set. */
);

so you pull in <ecoli/config.h> and then you hand over one single bool β€” that's the boolean value you want to be set β€” and boom, you get a config object back. one argument, zero drama, main character energy fr fr ✨


🫢 RETURN VALUE 🫢

you get the configuration object back. that's the good ending. πŸ’…

but also β€” and this is the part where we keep it real β€” you can get NULL on error, and in that case errno is set. so if you're getting NULL, bestie, check your errno, don't just stand there staring at it 😭

no cap: always check for NULL before you go dereferencing. the config object does not owe you anything.

πŸ¦‹ SEE ALSO πŸ¦‹

the whole friend group, all of them, in order, no one left out (iykyk):

like… that's the entire group chat. go read them too, they're all valid πŸ’œ


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


and that's the page, bestie πŸŽ€ this was libecoli, dated 2026-06-11, and honestly? she ate. go make your boolean. 🌈⭐

πŸ“¦ where this page comes from