load fonts at runtime
This commit is contained in:
parent
30510ab69a
commit
93f93a594e
5 changed files with 87 additions and 36 deletions
|
|
@ -38,6 +38,14 @@ void * ecalloc(unsigned long int nmemb, unsigned long int size)
|
|||
return r;
|
||||
}
|
||||
|
||||
void * erealloc(void *ptr, unsigned long int size)
|
||||
{
|
||||
void *r = realloc(ptr, size);
|
||||
if (!r)
|
||||
err(EXIT_FAILURE, "ralloc() of 0x%lx, to size %ld", (unsigned long)ptr, size);
|
||||
return r;
|
||||
}
|
||||
|
||||
|
||||
void efree(void *ptr)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue