unibi_get_ext_str(3)
β¨ unibi_get_ext_str(3) β¨
okay bestie, so this is one of those unibilium pages β that's the library name, and she's serving you a whole little family of functions for touching the extended capabilities of a terminal object. it's giving backstage pass energy π
πΈ NAME πΈ
unibi_get_ext_bool</purl>, unibi_set_ext_bool, unibi_get_ext_num, unibi_set_ext_num, unibi_get_ext_str, unibi_set_ext_str β these are the girlies that access the extended capabilities of a terminal object. six of them. one friend group. iconic π
π¦ 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);
no cap, that's the whole lineup. getters up top, setters down below, #include <unibilium.h> at the very start because obviously β¨
π DESCRIPTION π
so basically: you're getting and setting extended boolean, numeric, and string capabilities. three flavors, get and set for each. a whole lil trio. π«Ά
and i? i is the index of the extended capability you're acting on. she's the main character of the arguments. but listen β she has RULES:
- for the bool ones,
imust be less thanunibi_count_ext_bool(ut) - for the num ones,
imust be less thanunibi_count_ext_num(ut) - for the str ones,
imust be less thanunibi_count_ext_str(ut)
like, respectively. each one checks against its own counter. stay in your lane bestie, the counters are right there π
β οΈ okay this is the important one so I'm putting it in a quote block: note that"unibi_set_ext_str"simply stores the pointer it is given β she does not frees, and she does not make a copy of the string. it's just the pointer. that's it. that's the whole deal. so likeβ¦ the string is still yours to manage, she's just holding it. no photocopy, no cleanup, no take-backs. π
π SEE ALSO π
and that's the page fr fr πΈ this was unibilium-2.1.4, dated 2026-09-07, and the page title was unibi_get_ext_str(3). go forth and set some extended string capabilities, you absolute legend ππ
π¦ 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