/* * util.c: * * Copyright (c) 2017 James McKenzie , * All rights reserved. * */ #include "project.h" void * xmalloc (size_t s) { void *ret = malloc (s); if (!ret) { fprintf (stderr, "malloc(%lu) failed - aborting\n", s); exit (1); } return ret; }