scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | README | LICENSE

xmalloc.c (144B)


      1 #include <stdlib.h>
      2 #include <scc/scc.h>
      3 
      4 void *
      5 xmalloc(size_t size)
      6 {
      7 	void *p = malloc(size);
      8 
      9 	if (!p)
     10 		die("out of memory");
     11 	return p;
     12 }