scc

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

xcalloc.c (157B)


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