Subversion Repositories wimsdev

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
10 reyssat 1
#include <stdio.h>
2
#include <stdlib.h>
3
void *xmalloc(size_t n)
4
{
5
    void *p = malloc(n);
6
    if(p==NULL) {
7
        fprintf(stderr,"Malloc failure."); exit(1);
8
    }
9
    return p;
10
}