scc

simple C compiler
git clone git://git.2f30.org/scc
Log | Files | Refs | README | LICENSE

xcalloc.c (214B)


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