unibi_get_ext_str_name(3)
β¨ NAME β¨
ok so bestie, welcome to unibi_get_ext_str_name(3) β this is the unibilium manual, and this page is all about the little crew of functions that get and set the names of extended capabilities on a terminal object π
the whole squad is:
unibi_get_ext_bool_nameunibi_set_ext_bool_nameunibi_get_ext_num_nameunibi_set_ext_num_nameunibi_get_ext_str_nameunibi_set_ext_str_name
yeah, they're giving "access the names of extended capabilities of a terminal object" π
πΈ SYNOPSIS πΈ
#include <unibilium.h>
const char *unibi_get_ext_bool_name(const unibi_term *ut, size_t i);
const char *unibi_get_ext_num_name(const unibi_term *ut, size_t i);
const char *unibi_get_ext_str_name(const unibi_term *ut, size_t i);
void unibi_set_ext_bool_name(unibi_term *ut, size_t i, const char *s);
void unibi_set_ext_num_name(unibi_term *ut, size_t i, const char *s);
void unibi_set_ext_str_name(unibi_term *ut, size_t i, const char *s);
no cap, that's the whole thing π six functions, one include, zero drama.
π¦ DESCRIPTION π¦
okay so what are we even doing here. these functions get and set the names of extended boolean, numeric, and string capabilities. that's the vibe. π
and i?? i is the index of the extended capability you're acting on, bestie. and here's the rule, no exceptions:
it must be less thanunibi_count_ext_bool(ut),unibi_count_ext_num(ut), orunibi_count_ext_str(ut)β respectively. like, match the one that goes with the getter/setter you picked. fr fr. π
now for the part that lowkey matters a lot and you should NOT skip:
note that unibi_set_ext_bool_name, unibi_set_ext_num_name, and unibi_set_ext_str_name simply store the pointer they are given. that's it. that's the whole job. they will not free s π and they will not make a copy of the string. the pointer is yours now. the string is yours now. you own that memory, bestie β protect it with your life β¨
π SEE ALSO π
that's the page, periodt π«Ά this was the unibilium manual, unibilium-2.1.4, dated 2026-09-07, and it lives under the name unibi_get_ext_str_name(3) β mwah, go read unibilium.h(3) next, iykyk π
π¦ 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