safe.h File Reference

Safe versions of stdlib/string functions that error out and exit if memory allocation fails. More...

Go to the source code of this file.

Functions

void * safe_malloc (size_t size)
 Safe version of malloc.
char * safe_strdup (const char *s)
int safe_asprintf (char **strp, const char *fmt,...)
int safe_vasprintf (char **strp, const char *fmt, va_list ap)
pid_t safe_fork (void)


Detailed Description

Safe versions of stdlib/string functions that error out and exit if memory allocation fails.

Author:
Copyright (C) 2005 Mina Naguib <mina@ilesansfil.org>

Definition in file safe.h.


Function Documentation

void* safe_malloc ( size_t  size  ) 

Safe version of malloc.

Definition at line 45 of file safe.c.

References debug.


Generated on Sun Apr 13 21:55:00 2008 for WifiDog by  doxygen 1.5.3