Logo Search packages:      
Sourcecode: pulseaudio version File versions  Download package

PA_C_DECL_BEGIN void* pa_xmalloc ( size_t  l  ) 

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

Definition at line 60 of file xmalloc.c.

    void *p;
    pa_assert(size > 0);
    pa_assert(size < MAX_ALLOC_SIZE);

    if (!(p = malloc(size)))

    return p;

Generated by  Doxygen 1.6.0   Back to index