SHTK_CONFIG_GET_BOOL(3)

πŸ“¦ version 1.7, in nixos 26.05, nixpkgs unstable

πŸ’– shtk_config_get_bool(3) πŸ’–

okay so welcome to the Library Functions Manual, bestie β€” this is the page for shtk_config_get_bool(3), and it’s literally about getting a boolean config value. no cap. ✨


πŸ’… NAME πŸ’…

shtk_config_get_bool β€” gets the value of a boolean configuration variable. that’s the whole assignment, and it ate. πŸŽ€


πŸŽ€ LIBRARY πŸŽ€

you pull this one in with shtk_import config. slay. πŸ’–


✨ SYNOPSIS ✨

shtk_config_get_bool var_name

πŸ¦‹ DESCRIPTION πŸ¦‹

the shtk_config_get_bool function gets the value of the configuration variable var_name, interpreting its contents as a boolean as described in shtk_bool_check(3). that’s the vibe: you give it var_name, and it treats that variable’s contents as a boolean using the rules in shtk_bool_check(3). iykyk 🫢


🌸 RETURN VALUES 🌸

okay so the return vibe check is: it returns 0 (true) if the variable is set to a truth value; otherwise β€” and yes, including the case where the variable has not been set β€” it returns 1. periodt. πŸ’…


πŸ“ SEE ALSO πŸ“

go peek at these if you wanna zoom out, bestie πŸ¦‹


πŸ’œ HISTORY πŸ’œ

shtk_config_get_bool first appeared in shtk 1.0. iconic from the start, ngl. πŸ‘‘


mwah πŸ’‹ this page is from the source/version Debian, dated November 6, 2014 β€” bye bestie, go get that boolean! πŸŒˆπŸ’–

πŸ“¦ where this page comes from