xrealloc.c - scc - simple c99 compiler
(HTM) git clone git://git.simple-cc.org/scc
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) Submodules
(DIR) README
(DIR) LICENSE
---
xrealloc.c (164B)
---
1 #include <stdlib.h>
2 #include <scc/scc.h>
3
4 void *
5 xrealloc(void *buff, size_t size)
6 {
7 void *p = realloc(buff, size);
8
9 if (!p)
10 die("out of memory");
11 return p;
12 }