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

void* pa_xmalloc0 ( size_t  l  ) 

Same as pa_xmalloc(), but initialize allocated memory to 0

Definition at line 71 of file xmalloc.c.

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

    if (!(p = calloc(1, size)))
        oom();

    return p;
}


Generated by  Doxygen 1.6.0   Back to index