SHTK_CONFIG_GET_BOOL(3)
π 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
- nixos 26.05: shtk 1.7
- nixpkgs unstable: shtk 1.7
- Copyright 2014 Google Inc
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms