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_name
  • unibi_set_ext_bool_name
  • unibi_get_ext_num_name
  • unibi_set_ext_num_name
  • unibi_get_ext_str_name
  • unibi_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 than unibi_count_ext_bool(ut), unibi_count_ext_num(ut), or unibi_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