Module libpulse_sys::xmalloc[][src]

Memory allocation functions.

Functions

pa_xfree

Free allocated memory.

pa_xmalloc

Allocate the specified number of bytes, just like malloc() does. However, in case of OOM, terminate.

pa_xmalloc0

Same as pa_xmalloc , but initialize allocated memory to 0.

pa_xmemdup

Duplicate the specified memory block.

pa_xnew

Allocate n new structures of the specified type.

pa_xnew0

Same as pa_xnew but set the memory to zero.

pa_xnewdup

Same as pa_xnew but duplicate the specified data.

pa_xrealloc

The combination of pa_xmalloc and realloc().

pa_xrenew

Reallocate n new structures of the specified type.

pa_xstrdup

Duplicate the specified string, allocating memory with pa_xmalloc.

pa_xstrndup

Duplicate the specified string, but truncate after l characters.