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

NAME

6       unibi_num_from_var, unibi_str_from_var, unibi_var_from_num,
7       unibi_var_from_str - create and inspect unibi_var_t values
8

SYNOPSIS

10        #include <unibilium.h>
11
12        int         unibi_num_from_var(unibi_var_t v);
13        const char *unibi_str_from_var(unibi_var_t v);
14
15        unibi_var_t unibi_var_from_num(int i);
16        unibi_var_t unibi_var_from_str(char *s);
17

DESCRIPTION

19       "unibi_var_from_num" and "unibi_var_from_str" wrap the given int or
20       string in a "unibi_var_t" object for use in unibi_format(3) and
21       unibi_run(3).
22
23       unibi_num_from_var(v) returns the number stored in v, which must have
24       been constructed by "unibi_var_from_num".  unibi_str_from_var(v)
25       returns the string stored in v, which must have been constructed by
26       "unibi_var_from_str".
27
28       It is an error to pass a wrapped string to "unibi_num_from_var" or a
29       wrapped number to "unibi_str_from_var".
30

SEE ALSO

32       unibi_format(3), unibi_run(3), unibilium.h(3)
33
34
35
36unibilium-2.0.0                   2021-01-27        doc::unibi_num_from_var(3)
Impressum