Logo Search packages:      
Sourcecode: pulseaudio version File versions

void* pa_xmemdup ( const void *  p,
size_t  l 
)

Duplicate the specified memory block

Definition at line 92 of file xmalloc.c.

                                          {
    if (!p)
        return NULL;
    else {
        char *r = pa_xmalloc(l);
        memcpy(r, p, l);
        return r;
    }
}


Generated by  Doxygen 1.6.0   Back to index