rasqal_alloc_memory

Name

rasqal_alloc_memory --  Allocate memory inside rasqal.

Synopsis

void* rasqal_alloc_memory (size_t size);

Arguments

size

size of memory to allocate

Description

Some systems require memory allocated in a library to be deallocated in that library. This function allows memory to be allocated inside the rasqal shared library that can be freed inside rasqal either internally or via rasqal_free_memory.

Return value

the address of the allocated memory or NULL on failure