X-Git-Url: https://git.stderr.nl/gitweb?a=blobdiff_plain;f=babel%2Fmisc.c;fp=babel%2Fmisc.c;h=982927fd5b4d8e84121d6d6d3f563878f8499478;hb=6fd0347f330cb24ef6145662023053a1c0f81a64;hp=0000000000000000000000000000000000000000;hpb=7d14a66ee234db0898de6fabb8f850ebc4bb733a;p=projects%2Fchimara%2Fchimara.git diff --git a/babel/misc.c b/babel/misc.c new file mode 100644 index 0000000..982927f --- /dev/null +++ b/babel/misc.c @@ -0,0 +1,19 @@ +/* misc.h : miscellany for babel + * This file is public domain + * 2006 by L. Ross Raszewski + */ + +#include +#include + +void *my_malloc(int size, char *rs) +{ + void *buf=calloc(size,1); + if (size && !buf) + { + fprintf(stderr,"Error: Memory exceeded (%d for %s)!\n",size,rs); + exit(2); + } + return buf; +} +