unibi_num_from_var(3)
π unibi_num_from_var(3) π
okay bestie, welcome to the unibilium manual, section 3 β this one's all about unibi_var_t, the little β¨ wrapper β¨ that holds either a number or a string. Four functions, two of them build the wrapper, two of them peek inside it. it's giving accessor functions, and honestly? iconic. π
πΈ 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. look at that. four little lines of pure potential. π
π DESCRIPTION π
so here's the tea, bestie π. unibi_var_from_num and unibi_var_from_str take the int or the string you hand them and wrap it up in a unibi_var_t object, so you can go use it over in unibi_format(3) and unibi_run(3). that's their whole job. they're the little gift-wrappers of this library. π
then when you wanna see what's inside:
unibi_num_from_var(v)gives you back the number stored invβ and lowkey,vmust have been constructed byunibi_var_from_num. no substitutes. πunibi_str_from_var(v)gives you back the string stored invβ and again,vmust have been constructed byunibi_var_from_str. fr fr. πΈ
β οΈ and this is the part where you do not play games: it is an error to pass a wrapped string tounibi_num_from_var, or a wrapped number tounibi_str_from_var. the vibe check will fail. do not attempt. ππ
π SEE ALSO π
unibi_format(3), unibi_run(3), unibilium.h(3) π
that's the whole page, bestie, you ate it π«Ά go forth and wrap your numbers and strings correctly. mwah. π
unibilium-2.1.4 π 2026-09-07 π unibi_num_from_var(3) β periodt. π
β¨
π¦ 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