unibi_get_ext_bool(3)

✨ NAME ✨

unibi_get_ext_bool, unibi_set_ext_bool, unibi_get_ext_num, unibi_set_ext_num, unibi_get_ext_str, unibi_set_ext_str β€” the whole friend group that gets and sets the extended capabilities of a terminal object πŸ’–

(oh and hey, this is all living in the unibilium manual, bestie β€” third section, the library one πŸŽ€)


🌸 SYNOPSIS 🌸

#include <unibilium.h>

int unibi_get_ext_bool(const unibi_term *ut, size_t i);
int unibi_get_ext_num(const unibi_term *ut, size_t i);
const char *unibi_get_ext_str(const unibi_term *ut, size_t i);

void unibi_set_ext_bool(unibi_term *ut, size_t i, int b);
void unibi_set_ext_num(unibi_term *ut, size_t i, int v);
void unibi_set_ext_str(unibi_term *ut, size_t i, const char *s);

πŸ’… DESCRIPTION πŸ’…

Okay so. Get and set the extended boolean, numeric, and string capabilities. That's the whole gig, and honestly? She ate. πŸ”₯

i is the index of the extended capability you're acting on. And no cap, it must be less than unibi_count_ext_bool(ut), unibi_count_ext_num(ut), or unibi_count_ext_str(ut) respectively. Like, it literally has to be. Do not test her. πŸ’€

⚠️ Also important, and I need you locked in for this one: unibi_set_ext_str simply stores the pointer it is given. It will not free s, and it will not make a copy of the string. It's giving "here, hold this" energy. The pointer is now yours to worry about, bestie 😭

πŸ‘‘ SEE ALSO πŸ‘‘


and that's the whole page, periodt πŸ’œ this one's from unibilium-2.1.4, dated 2026-09-07 β€” go forth and index responsibly, my main character ✨🌈

πŸ“¦ where this page comes from