Back to index

wims  3.65+svn20090927
Functions
safemem.h File Reference
#include <errno.h>
#include <stdlib.h>
#include <stdio.h>
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void * safe_calloc (size_t nmemb, size_t size)
void * safe_malloc (size_t size)

Function Documentation

void* safe_calloc ( size_t  nmemb,
size_t  size 
)

Definition at line 22 of file safemem.h.

                                              {
    void *p = calloc(nmemb, size);
    if (!p) exit(1);
    return p;
  }

Here is the caller graph for this function:

void* safe_malloc ( size_t  size)

Definition at line 28 of file safemem.h.

                                  {
    void *p = malloc(size);
    if (!p) exit(1);
    return p;
  }

Here is the caller graph for this function: