unibi_add_ext_num(3)

✨ unibi_add_ext_num(3) ✨

okay bestie, so this page is literally about unibi_add_ext_num(3) β€” but wait, it's a whole trio situation. We're talking unibi_add_ext_bool, unibi_add_ext_num, and unibi_add_ext_str. Three icons, one mission: adding extended capabilities to a terminal object. πŸ’…


πŸŽ€ NAME πŸŽ€

unibi_add_ext_bool, unibi_add_ext_num, unibi_add_ext_str β€” adding extended capabilities to a terminal object, no cap 🫢


🌸 SYNOPSIS 🌸

#include <unibilium.h>

size_t unibi_add_ext_bool(unibi_term *ut, const char *t, int b);
size_t unibi_add_ext_num(unibi_term *ut, const char *t, int v);
size_t unibi_add_ext_str(unibi_term *ut, const char *t, const char *s);

πŸ¦‹ DESCRIPTION πŸ¦‹

So what's the vibe? You're adding an extended boolean, numeric, or string capability with the name and value you specify. That's it, that's the whole thing. Slay. ✨

⚠️ okay important, do NOT skip this part: these functions simply store any pointers they are given. They will not free t or s, and they will not copy any strings. So like, the pointer you hand over is the pointer they're keeping. Forever. It's giving "you break it, you bought it" energy. 😭 Be careful with your lifetimes, bestie.

πŸ’– RETURN VALUE πŸ’–

The return value is the index of the new capability β€” which you can then use in unibi_get_ext_bool(3), unibi_set_ext_bool(3), etc. iykyk, super useful. 🌈

If an error occurs, SIZE_MAX is returned. πŸ’€ (yes, that's the error signal, not a real index, don't get it twisted)


πŸ‘‘ SEE ALSO πŸ‘‘


and that's the whole page, bestie, you ate that πŸ’…βœ¨

this little masterpiece lives in unibilium-2.1.4, dated 2026-09-07, and it was brought to you by the unibi_add_ext_num(3) girlies. go forth and add your extended capabilities responsibly πŸŽ€πŸ¦‹πŸ’–

πŸ“¦ where this page comes from