Back to index

wims  3.65+svn20090927
xmalloc.c
Go to the documentation of this file.
00001 #include <stdio.h>
00002 #include <stdlib.h>
00003 void *xmalloc(size_t n)
00004 {
00005     void *p = malloc(n);
00006     if(p==NULL) {
00007         fprintf(stderr,"Malloc failure."); exit(1);
00008     }
00009     return p;
00010 }