unibi_name_bool(3)

πŸ’– unibi_name_bool β€” a manual page, but make it cute ✨

okay so this is unibilium's little trio of name-translators, bestie. It lives in section 3 of the manual, and it's all about turning capability enums into names you can actually read. πŸŽ€


🌸 NAME 🌸

unibi_name_bool, unibi_name_num, unibi_name_str, unibi_short_name_bool, unibit_short_name_num, unibi_short_name_str β€” translate capability enums to names

yes bestie, unibit_short_name_num is spelled like that in the original and I am NOT touching it, we respect the source πŸ’…

πŸ¦‹ SYNOPSIS πŸ¦‹

#include <unibilium.h>

const char *unibi_name_bool(enum unibi_boolean b);
const char *unibi_name_num(enum unibi_numeric n);
const char *unibi_name_str(enum unibi_string s);

const char *unibi_short_name_bool(enum unibi_boolean b);
const char *unibi_short_name_num(enum unibi_numeric n);
const char *unibi_short_name_str(enum unibi_string s);

✨ DESCRIPTION ✨

So basically, these functions hand you back the names of capabilities as strings. That's it. That's the whole job. Iconic, honestly.

By default you get the long names β€” aka the "variable names". But if you want the cute lil abbreviated ones, the unibi_short_name_* variants slide you the shorter "capnames" instead. 🫢


πŸ”₯ EXAMPLE πŸ”₯

#include <stdio.h>
#include <unibilium.h>

int main(void) {
  printf("%s - %s\n", unibi_name_bool(unibi_has_status_line), unibi_short_name_bool(unibi_has_status_line));
  /* Output:
     has_status_line - hs
  */
}

see how has_status_line and hs are literally the same vibe, just one of them went to the gym and the other one is the group chat shorthand? slay 🌈


πŸ‘‘ SEE ALSO πŸ‘‘


and that's the whole page, bestie β€” no cap. This little gem is from unibilium-2.1.4, dated 2026-09-07, and it was brought to you by the unibi_name_bool(3) page itself. go forth and translate those enums. mwah. πŸ’–πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from