repo.or.cz
/
ironout.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
block: don't put spaces around :
[ironout.git]
/
utils.c
blob
fb234a67ad7f12c1d45eeee42b10b12e22daf4ba
1
#include <stdio.h>
2
#include <stdlib.h>
3
4
5
void
*
xmalloc
(
size_t
size
)
6
{
7
void
*
value
=
malloc
(
size
);
8
if
(!
value
) {
9
fprintf
(
stderr
,
"Out of memory!
\n
"
);
10
exit
(
1
);
11
}
12
return
value
;
13
}