Main Page   Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

xalloc.h File Reference

Go to the source code of this file.

Functions

void* xcalloc (size_t nmemb, size_t size)
void* xmalloc (size_t size)
void xfree (void **ptr)
void* xrealloc (void *ptr, size_t size)
char* xstrdup (const char *s)


Function Documentation

void* xcalloc ( size_t nmemb,
size_t size )
 

Calls calloc with the given parameters and returns its result, after checking that the call succeeded.

Definition at line 45 of file xalloc.c.

void* xmalloc ( size_t size )
 

Calls malloc with the given parameters and returns its result, after checking that the call succeeded.

Definition at line 53 of file xalloc.c.

Referenced by enterDumbMode().

void xfree ( void ** ptr )
 

Calls free on the given pointer, then sets the pointer to NULL.

Definition at line 60 of file xalloc.c.

void* xrealloc ( void * ptr,
size_t size )
 

Calls realloc with the given parameters and returns its result, after checking that the call succeeded.

Definition at line 66 of file xalloc.c.

Referenced by appendToDmBuffer().

char* xstrdup ( const char * s )
 

Calls strdup and checks the result.

Definition at line 74 of file xalloc.c.

Referenced by getUnescapedString(), yy_start_stack(), and yyparse().


Generated at Tue Jul 9 21:05:47 2002 for CppCC by doxygen1.2.8.1 written by Dimitri van Heesch, © 1997-2001