xmalloc.c File Reference

#include <sys/types.h>
#include <stdio.h>
#include "xmalloc.h"

Go to the source code of this file.

Defines

#define errmsg   "mplib: Memory exhausted: Could not allocate %d bytes\n"

Functions

void * xmalloc (size_t s)
void * xmallocd (size_t s, char *descrl)
void * xmallocd0 (size_t s, char *descr)
void * xmalloc0 (size_t s)
void * xrealloc (void *ptr, size_t s)
void xfree (void *ptr)


Define Documentation

#define errmsg   "mplib: Memory exhausted: Could not allocate %d bytes\n"
 

Definition at line 52 of file xmalloc.c.


Function Documentation

void xfree void *  ptr  ) 
 

Definition at line 132 of file xmalloc.c.

void* xmalloc size_t  s  ) 
 

Definition at line 55 of file xmalloc.c.

void* xmalloc0 size_t  s  ) 
 

Definition at line 107 of file xmalloc.c.

void* xmallocd size_t  s,
char *  descrl
 

Definition at line 61 of file xmalloc.c.

void* xmallocd0 size_t  s,
char *  descr
 

Definition at line 94 of file xmalloc.c.

void* xrealloc void *  ptr,
size_t  s
 

Definition at line 120 of file xmalloc.c.