Main Page   Alphabetical List   Data Structures   File List   Data Fields   Globals  

xmem.h File Reference

Safe memory functions from Terminality - a portable terminal handling library. More...

#include <stdio.h>
#include <stdlib.h>

Defines

#define xmem_debug_fd   stderr
 Debug messages go to... More...


Functions

void * xmalloc (size_t bytes)
 Allocates memory || dies when it goes OOM. More...

void * xcalloc (size_t elements, size_t bytes)
 Allocates memory || dies when it goes OOM. More...

void * xrealloc (void *ptr, size_t bytes)
 Reallocates memory || dies when it goes OOM. More...

void xfree (void *ptr)
 Frees memory. More...


Variables

int xmem_want_debug
 Functions will print debug messages if xmem_want_debug != 0. More...


Detailed Description

Safe memory functions from Terminality - a portable terminal handling library.

Author:
Michal Safranek, Emil Mikulic, Igor Bujna
Date:
2002/07/26 01:39:40
Version:
1.5

Define Documentation

#define xmem_debug_fd   stderr
 

Debug messages go to...


Function Documentation

void* xcalloc size_t    elements,
size_t    bytes
 

Allocates memory || dies when it goes OOM.

void xfree void *    ptr
 

Frees memory.

void* xmalloc size_t    bytes
 

Allocates memory || dies when it goes OOM.

void* xrealloc void *    ptr,
size_t    bytes
 

Reallocates memory || dies when it goes OOM.


Variable Documentation

int xmem_want_debug
 

Functions will print debug messages if xmem_want_debug != 0.


Generated on Wed Apr 2 06:51:17 2003 for TFCC by doxygen1.2.13.1 written by Dimitri van Heesch, © 1997-2001