unibi_set_ext_num(3)

✨ unibi_set_ext_num(3) β€” the unibilium girlies' guide to ext capabilities ✨

okay bestie, so this one lives in unibilium (that's the manual name, cute right?) and it's literally the whole extended-capability situation. booleans, numbers, strings β€” get 'em, set 'em, slay. πŸ’…


🌸 NAME 🌸

unibi_get_ext_bool, unibi_set_ext_bool, unibi_get_ext_num, unibi_set_ext_num, unibi_get_ext_str, unibi_set_ext_str β€” get and set the extended capabilities of a terminal object πŸ–₯οΈπŸ’–


πŸŽ€ 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);

πŸ¦‹ DESCRIPTION πŸ¦‹

so basically: these functions get and set the extended boolean, numeric, and string capabilities. iconic. no cap.

i is the index of the extended capability you're acting on, and here's the vibe check β€” it must be less than:

  • unibi_count_ext_bool(ut) for the boolean ones,
  • unibi_count_ext_num(ut) for the numeric ones,
  • unibi_count_ext_str(ut) for the string ones.

respectively, bestie. each one's got its own count. 🫢

🚨 okay listen β€” unibi_set_ext_str literally just stores the pointer it's given. it will not free s, and it will not make a copy of the string. so if you hand it a pointer to something that goes poof, that's on you, not on unibilium. 😭 keep that string alive fr fr.

πŸ‘‘ SEE ALSO πŸ‘‘


and that's the whole page, bestie ✨ this was unibilium-2.1.4, dated 2026-09-07, and it's giving main character energy from start to finish. go forth and set those ext nums. πŸ’–πŸŒˆπŸŽ€

πŸ“¦ where this page comes from