unibi_add_ext_bool man page

unibi_add_ext_bool, unibi_add_ext_num, unibi_add_ext_str — add extended capabilities to a terminal object


 #include <unibilium.h>

 size_t unibi_add_ext_bool(unibi_term *ut, const char *t, int b);
 size_t unibi_add_ext_num(unibi_term *ut, const char *t, short v);
 size_t unibi_add_ext_str(unibi_term *ut, const char *t, const char *s);


Add an extended boolean, numeric, or string capability with the specified name and value.

Note that these functions simply store any pointers they are given. They will not free t or s or copy any strings.

Return Value

The return value is the index of the new capability, which can be used in unibi_get_ext_bool(3), unibi_set_ext_bool(3), etc. If an error occurs, "SIZE_MAX" is returned.

See Also

unibilium.h(3), unibi_del_ext_bool(3), unibi_del_ext_num(3), unibi_del_ext_str(3)

Referenced By

unibi_del_ext_bool(3), unibilium.h(3).

unibi_add_ext_num(3) and unibi_add_ext_str(3) are aliases of unibi_add_ext_bool(3).

2015-08-14 unibilium-1.2.0