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 in v β€” and lowkey, v must have been constructed by unibi_var_from_num. no substitutes. πŸ™ˆ
  • unibi_str_from_var(v) gives you back the string stored in v β€” and again, v must have been constructed by unibi_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 to unibi_num_from_var, or a wrapped number to unibi_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