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

Classes | Defines | Typedefs | Functions

malloc.h File Reference

#include <sys/types.h>
#include <stdarg.h>
#include <limits.h>
#include <assert.h>
#include <avahi-common/cdecl.h>
#include <avahi-common/gccmacro.h>
Include dependency graph for malloc.h:

Go to the source code of this file.

Classes

struct  AvahiAllocator

Defines

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

Typedefs

typedef struct AvahiAllocator AvahiAllocator

Functions

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

Detailed Description

Memory allocation

Definition in file malloc.h.


Generated by  Doxygen 1.6.0   Back to index