unibi_set_str(3)

✨ unibi_set_str(3) ✨

okay bestie, so this is a page from the unibilium manual β€” that's the terminal-capability library, the one that knows literally everything about what your terminal can and can't do πŸ’…. We're talking about the little getter/setter squad that reads and writes capabilities on a terminal object, and honestly? iconic.


🌸 NAME 🌸

unibi_get_bool, unibi_set_bool, unibi_get_num, unibi_set_num, unibi_get_str, unibi_set_str β€” the way these functions access the capabilities of a terminal object 🫢


πŸŽ€ SYNOPSIS πŸŽ€

#include <unibilium.h>

int unibi_get_bool(const unibi_term *ut, enum unibi_boolean b);
void unibi_set_bool(unibi_term *ut, enum unibi_boolean b, int x);

int unibi_get_num(const unibi_term *ut, enum unibi_numeric n);
void unibi_set_num(unibi_term *ut, enum unibi_numeric n, int x);

const char *unibi_get_str(const unibi_term *ut, enum unibi_string s);
void unibi_set_str(unibi_term *ut, enum unibi_string s, const char *x);

πŸ¦‹ DESCRIPTION πŸ¦‹

So basically, these are your get/set girlies for boolean, numeric, and string capabilities. Three flavours, one vibe. Get them, set them, slay ✨

Now, about the absent ones β€” because sometimes a capability just isn't there and that's valid:

  • numeric capabilities that are absent show up as -1
  • string capabilities that are absent show up as "NULL"
⚠️ ok important, no cap: "unibi_set_str" simply stores the pointer it is given. It will not free x, and it will not make a copy of the string. It just holds onto your pointer. So like… don't let that string die on you, bestie 😭 that's on you to manage, fr fr.

πŸ‘‘ SEE ALSO πŸ‘‘

  • unibilium.h(3)

and that's the whole page, you ate that πŸ’…

sign-off time: this lil masterpiece is from unibilium-2.1.4, dated 2026-09-07 β€” mwah, periodt πŸŽ€βœ¨πŸ¦‹

πŸ“¦ where this page comes from