unibi_int_from_var(3)
π unibi_int_from_var β the unibilium glow-up guide π
okay bestie, so this is a page from unibilium(3), and it's literally all about wrapping numbers and strings up in little unibi_var_t packages and then peeking back inside them. it's giving β¨ gift wrap and un-wrap β¨ and honestly? we're obsessed.
πΈ NAME πΈ
unibi_num_from_var, unibi_str_from_var, unibi_var_from_num, unibi_var_from_str β create and inspect unibi_var_t values π
β¨ SYNOPSIS β¨
#include <unibilium.h>
int unibi_num_from_var(unibi_var_t v);
const char *unibi_str_from_var(unibi_var_t v);
unibi_var_t unibi_var_from_num(int i);
unibi_var_t unibi_var_from_str(char *s);
like, four little functions, all matching, all iconic π
π¦ DESCRIPTION π¦
so <rainbow>unibi_var_from_num</rainbow> and <rainbow>unibi_var_from_strare the wrappers, right? they take theintor the string you hand them and tuck it all cozy inside aunibi_var_tobject so it can be used inunibi_format(3)andunibi_run(3)`. it's their whole thing. they're built for it. no cap. π«Ά
then we got the inspectors:
<cyan>unibi_num_from_var(v)</cyan>returns the number stored invβ and listen,vmust have been constructed byunibi_var_from_num. that's not optional, that's the vibe check.<cyan>unibi_str_from_var(v)</cyan>returns the string stored invβ andvmust have been constructed byunibi_var_from_str. same energy, same rule.
π¨ okay but this part is IMPORTANT, bestie. it is an error to pass a wrapped string tounibi_num_from_varor a wrapped number tounibi_str_from_var. do not do it. i'm literally begging. that's the π path and we are NOT walking it. π
π SEE ALSO π
and that's the whole page, fr fr β¨ this was unibilium-2.1.4, dated 2026-09-07, signing off β go wrap something in a unibi_var_t and slay the day ππ
π
π¦ where this page comes from
- fedora 44: unibilium-devel 2.1.4-1.fc44 Β· LGPL-3.0-or-later
- fedora 44: unibilium-devel 2.1.4-1.fc44 Β· LGPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms