Logo Search packages:      
Sourcecode: pulseaudio version File versions

xmalloc.h File Reference

Detailed Description

Memory allocation functions.

Definition in file xmalloc.h.

#include <sys/types.h>
#include <stdlib.h>
#include <limits.h>
#include <assert.h>
#include <pulse/cdecl.h>

Go to the source code of this file.


#define pa_xnew(type, n)   ((type*) pa_xnew_internal((n), sizeof(type)))
#define pa_xnew0(type, n)   ((type*) pa_xnew0_internal((n), sizeof(type)))
#define pa_xnewdup(type, p, n)   ((type*) pa_xnewdup_internal((p), (n), sizeof(type)))


void pa_xfree (void *p)
PA_C_DECL_BEGIN void * pa_xmalloc (size_t l)
void * pa_xmalloc0 (size_t l)
void * pa_xmemdup (const void *p, size_t l)
static void * pa_xnew0_internal (unsigned n, size_t k)
static void * pa_xnew_internal (unsigned n, size_t k)
static void * pa_xnewdup_internal (const void *p, unsigned n, size_t k)
void * pa_xrealloc (void *ptr, size_t size)
char * pa_xstrdup (const char *s)
char * pa_xstrndup (const char *s, size_t l)

Generated by  Doxygen 1.6.0   Back to index