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

void* pa_xrealloc ( void *  ptr,
size_t  size 
)

The combination of pa_xmalloc() and realloc()

Definition at line 83 of file xmalloc.c.

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

    if (!(p = realloc(ptr, size)))
        oom();
    return p;
}


Generated by  Doxygen 1.6.0   Back to index