Debian Codegraph @

support/babel/misc.c

raw symbols SCIP
1 /* misc.h : miscellany for babel
2 * This file is public domain
3 * 2006 by L. Ross Raszewski
4 */
5
6 #include <stdlib.h>
7 #include <stdio.h>
8
9 void *my_malloc(unsigned int size, char *rs)
10 {
11 void *buf=calloc(size,1);
12 if (size && !buf)
13 {
14 fprintf(stderr,"Error: Memory exceeded (%d for %s)!\n",size,rs);
15 exit(2);
16 }
17 return buf;
18 }
19