Function ndpi_malloc

Function Documentation

void *ndpi_malloc(size_t size)

Allocate memory using nDPI’s memory allocator. This function can be customized via ndpi_set_malloc() to use a custom allocator.

Parameters:

size – Number of bytes to allocate

Returns:

Pointer to allocated memory, or NULL on failure