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

void* avahi_memdup ( const void *  s,
size_t  l 

Duplicate the given memory block into a new one allocated with avahi_malloc()

Definition at line 248 of file malloc.c.

    void *p;

    if (!(p = avahi_malloc(l)))
        return NULL;

    memcpy(p, s, l);
    return p;

Generated by  Doxygen 1.6.0   Back to index