Module libpulse_sys::xmalloc[][src]

Memory allocation functions.

Functions

pa_xfree

Frees allocated memory.

pa_xmalloc

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

pa_xmalloc0

Same as pa_xmalloc() , but initializes allocated memory to 0.

pa_xmemdup

Duplicates the specified memory block.

pa_xnew

Allocates n new structures of the specified type.

pa_xnew0

Same as pa_xnew() but sets the memory to zero.

pa_xnewdup

Same as pa_xnew() but duplicates the specified data.

pa_xrealloc

The combination of pa_xmalloc() and realloc().

pa_xrenew

Reallocates n new structures of the specified type.

pa_xstrdup

Duplicates the specified string, allocating memory with pa_xmalloc().

pa_xstrndup

Duplicates the specified string, but truncate after l characters.