Back to index

wims  3.65+svn20090927
Functions
xmalloc.c File Reference
#include <stdio.h>
#include <stdlib.h>

Go to the source code of this file.

Functions

void * xmalloc (size_t n)

Function Documentation

void* xmalloc ( size_t  n)

Definition at line 3 of file xmalloc.c.

{
    void *p = malloc(n);
    if(p==NULL) {
        fprintf(stderr,"Malloc failure."); exit(1);
    }
    return p;
}