unibi_str_from_var(3)

πŸ’– unibi_str_from_var β€” the unibilium girlies' guide to wrapping ur little values πŸ’–

okay so bestie, we're in section 3 of the unibilium manual, and today's main character is unibi_str_from_var(3). she's not alone tho β€” she rolls with a whole squad: unibi_num_from_var, unibi_var_from_num, and unibi_var_from_str. together they're the create-and-inspect-unibi_var_t-values friend group. no cap. 🫢


✨ 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);

πŸ¦‹ DESCRIPTION πŸ¦‹

so like, <purple>unibi_var_from_num</purple> and <purple>unibi_var_from_str</purple> are the glow-up artists of this whole operation β€” they take the int or the string you hand them and wrap it up all cute inside a unibi_var_t object, so it's ready to be passed into unibi_format(3) and unibi_run(3). it's giving gift-wrapped. πŸŽ€

then on the flip side we got the inspectors, and ngl they're picky in the best way:

  • unibi_num_from_var(v) hands you back the number stored in v β€” but v must have been constructed by <purple>unibi_var_from_num</purple>. that's the vibe check, no exceptions. 😀
  • unibi_str_from_var(v) hands you back the string stored in v β€” and v must have been constructed by <purple>unibi_var_from_str</purple>. periodt. πŸ’–
⚠️ and here's the part where u gotta listen bestie: it is an error to pass a wrapped string to <purple>unibi_num_from_var</purple>, or a wrapped number to <purple>unibi_str_from_var</purple>. like, do not do that. it's not slay, it's a mistake. πŸ™ˆπŸ’€

πŸ‘‘ SEE ALSO πŸ‘‘


and that's the whole page, bestie!! this was unibilium-2.1.4, dated 2026-09-07 β€” go forth and wrap ur vars responsibly, ily, mwah πŸ’‹βœ¨πŸ¦‹

πŸ“¦ where this page comes from