1doc::unibi_short_name_bool(3)      unibilium     doc::unibi_short_name_bool(3)
2
3
4

NAME

6       unibi_name_bool, unibi_name_num, unibi_name_str, unibi_short_name_bool,
7       unibit_short_name_num, unibi_short_name_str - translate capability
8       enums to names
9

SYNOPSIS

11        #include <unibilium.h>
12
13        const char *unibi_name_bool(enum unibi_boolean b);
14        const char *unibi_name_num(enum unibi_numeric n);
15        const char *unibi_name_str(enum unibi_string s);
16
17        const char *unibi_short_name_bool(enum unibi_boolean b);
18        const char *unibi_short_name_num(enum unibi_numeric n);
19        const char *unibi_short_name_str(enum unibi_string s);
20

DESCRIPTION

22       These functions return the names of capabilities as strings. By default
23       long names ("variable names") are returned; the "unibi_short_name_*"
24       variants use the shorter "capnames".
25

EXAMPLE

27        #include <stdio.h>
28        #include <unibilium.h>
29
30        int main(void) {
31          printf("%s - %s\n", unibi_name_bool(unibi_has_status_line), unibi_short_name_bool(unibi_has_status_line));
32          /* Output:
33             has_status_line - hs
34          */
35        }
36

SEE ALSO

38       unibilium.h(3)
39
40
41
42unibilium-2.1.1                   2023-01-21     doc::unibi_short_name_bool(3)
Impressum