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, i must be less than unibi_count_ext_bool(ut)
  • for the num ones, i must be less than unibi_count_ext_num(ut)
  • for the str ones, i must be less than unibi_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 free s, 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