SYNOPSIS
#include <unibilium.h>
unibi_term *unibi_from_mem(const char *p, size_t n);
DESCRIPTION
This function parses a compiled terminfo entry that starts at p and is n bytes long and constructs a "unibi_term" object from it. When you're done with it, you should call "unibi_destroy" to free it.RETURN VALUE
A pointer to a new "unibi_term". In case of failure, "NULL" is returned and "errno" is set.ERRORS
- "EINVAL"
- The passed bytes don't look like a valid terminfo entry.
- "EFAULT"
- n is too small for a valid terminfo entry.