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
- fedora 44: unibilium-devel 2.1.4-1.fc44 Β· LGPL-3.0-or-later
- fedora 44: unibilium-devel 2.1.4-1.fc44 Β· LGPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms