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_strsimply stores the pointer it is given. It will not frees, 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 π
unibilium.h(3)π¦
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
- fedora 44: unibilium-devel 2.1.4-1.fc44 Β· LGPL-3.0-or-later
- fedora 44: unibilium-devel 2.1.4-1.fc44 Β· LGPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms