unibi_get_ext_num_name(3)

✨ unibi_get_ext_num_name ✨

okay bestie, welcome to the unibilium manual page for unibi_get_ext_num_name(3) β€” yes that's the one in the title, and yes we're gonna get through all six functions in here together 🫢


🌸 NAME 🌸

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 β€” literally just here to let you 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);

like, look at them. six little icons. three getters, three setters, all matching. periodt πŸ’–


πŸ¦‹ DESCRIPTION πŸ¦‹

so what are we actually doing here? we're getting and setting the names of extended boolean</>, numeric</>, and string</> capabilities. that's the whole vibe. 🧚

the i is the index of the extended capability you wanna act on. and this part is non-negotiable bestie, no cap:

i must be less than unibi_count_ext_bool(ut), unibi_count_ext_num(ut), or unibi_count_ext_str(ut) β€” respectively. like, whichever flavour of capability you're poking at, check the matching count first. πŸ™ˆ

and now the part that makes people go 😭 β€” listen carefully:

  • 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 all they do. they will not free s and they will not make a copy of the string. so if that pointer goes away, or that buffer changes, your terminal object is holding onto a ghost πŸ‘» β€” the pointer is yours to manage, okay? it's giving "you break it you bought it" but make it C. πŸ’€


🌈 SEE ALSO 🌈


and that's the whole page, bestie, you ate it up πŸ‘‘

signing off from unibilium-2.1.4, dated 2026-09-07 β€” catch you in the next manpage, mwah πŸ’‹πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from