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

AVAHI_C_DECL_BEGIN void* avahi_malloc ( size_t  size  ) 

Allocate some memory, just like the libc malloc()

Definition at line 101 of file malloc.c.

References AvahiAllocator::malloc.

                                {

    if (size <= 0)
        return NULL;

    if (!allocator)
        return xmalloc(size);

    assert(allocator->malloc);
    return allocator->malloc(size);
}


Generated by  Doxygen 1.6.0   Back to index