projects
/
projects
/
chimara
/
chimara.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Ported babeltest to libsoup
[projects/chimara/chimara.git]
/
babel
/
misc.c
1
/* misc.h : miscellany for babel
\r
2
* This file is public domain
\r
3
* 2006 by L. Ross Raszewski
\r
4
*/
\r
5
\r
6
#include <stdlib.h>
\r
7
#include <stdio.h>
\r
8
\r
9
void *my_malloc(int size, char *rs)
\r
10
{
\r
11
void *buf=calloc(size,1);
\r
12
if (size && !buf)
\r
13
{
\r
14
fprintf(stderr,"Error: Memory exceeded (%d for %s)!\n",size,rs);
\r
15
exit(2);
\r
16
}
\r
17
return buf;
\r
18
}
\r
19
\r