Module libpulse_sys::xmalloc [−][src]
Expand description
Memory allocation functions.
Functions
Frees allocated memory.
Allocates the specified number of bytes, just like malloc()
does.
However, in case of OOM, terminate.
Same as pa_xmalloc()
, but initializes allocated memory to 0.
Duplicates the specified memory block.
Allocates n
new structures of the specified type.
Same as pa_xnew()
but sets the memory to zero.
Same as pa_xnew()
but duplicates the specified data.
The combination of pa_xmalloc()
and realloc()
.
Reallocates n
new structures of the specified type.
Duplicates the specified string, allocating memory with pa_xmalloc()
.
Duplicates the specified string, but truncate after l
characters.