xmalloc.h File Reference

Go to the source code of this file.

Defines

#define __BEGIN_DECLS
#define __END_DECLS
#define XMALLOC(type)   ((type *) xmalloc(sizeof(type)))
#define XMALLOCD(type, descr)   ((type *) xmallocd(sizeof(type),descr))
#define XMALLOC0(type)   ((type *) xmalloc0(sizeof(type)))
#define XMALLOCD0(type, descr)   ((type *) xmallocd0(sizeof(type),descr))

Functions

__BEGIN_DECLS void * xmalloc (size_t)
void * xmallocd (size_t, char *)
void * xmalloc0 (size_t)
void * xmallocd0 (size_t, char *)
void * xrealloc (void *, size_t)
void * xcalloc (size_t, size_t)
void xfree (void *)


Define Documentation

#define __BEGIN_DECLS
 

Definition at line 44 of file xmalloc.h.

#define __END_DECLS
 

Definition at line 45 of file xmalloc.h.

#define XMALLOC type   )     ((type *) xmalloc(sizeof(type)))
 

Definition at line 49 of file xmalloc.h.

#define XMALLOC0 type   )     ((type *) xmalloc0(sizeof(type)))
 

Definition at line 51 of file xmalloc.h.

#define XMALLOCD type,
descr   )     ((type *) xmallocd(sizeof(type),descr))
 

Definition at line 50 of file xmalloc.h.

#define XMALLOCD0 type,
descr   )     ((type *) xmallocd0(sizeof(type),descr))
 

Definition at line 52 of file xmalloc.h.


Function Documentation

void* xcalloc size_t  ,
size_t 
 

void xfree void *   ) 
 

Definition at line 132 of file xmalloc.c.

__BEGIN_DECLS void* xmalloc size_t   ) 
 

Definition at line 55 of file xmalloc.c.

void* xmalloc0 size_t   ) 
 

Definition at line 107 of file xmalloc.c.

void* xmallocd size_t  ,
char * 
 

Definition at line 61 of file xmalloc.c.

void* xmallocd0 size_t  ,
char * 
 

Definition at line 94 of file xmalloc.c.

void* xrealloc void *  ,
size_t 
 

Definition at line 120 of file xmalloc.c.