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

malloc.h File Reference

Detailed Description

Memory allocation

Definition in file malloc.h.

#include <sys/types.h>
#include <stdarg.h>
#include <limits.h>
#include <assert.h>
#include <avahi-common/cdecl.h>
#include <avahi-common/gccmacro.h>

Go to the source code of this file.


struct  AvahiAllocator


#define avahi_new(type, n)   ((type*) avahi_new_internal((n), sizeof(type)))
#define avahi_new0(type, n)   ((type*) avahi_new0_internal((n), sizeof(type)))


void avahi_free (void *p)
static void * AVAHI_GCC_ALLOC_SIZE2 (1, 2) avahi_new_internal(unsigned n
AVAHI_C_DECL_BEGIN void * avahi_malloc (size_t size) AVAHI_GCC_ALLOC_SIZE(1)
void * avahi_malloc0 (size_t size) AVAHI_GCC_ALLOC_SIZE(1)
void * avahi_memdup (const void *s, size_t l) AVAHI_GCC_ALLOC_SIZE(2)
void * avahi_realloc (void *p, size_t size) AVAHI_GCC_ALLOC_SIZE(2)
void avahi_set_allocator (const AvahiAllocator *a)
char * avahi_strdup_printf (const char *fmt,...) AVAHI_GCC_PRINTF_ATTR12
char * avahi_strndup (const char *s, size_t l)

Generated by  Doxygen 1.6.0   Back to index