chiark / gitweb /
changelog: Document -t option
[chiark-utils.git] / cprogs / common.c
index 26dc47672b934ae2684b70318941ba41649fd87d..b0542926a29085f660a7b653f3a1883452122281 100644 (file)
@@ -35,3 +35,9 @@ char *m_asprintf(const char *fmt, ...) {
   va_start(al,fmt); s= m_vasprintf(fmt,al); va_end(al);
   return s;
 }
+
+void *xmalloc(size_t sz) {
+  void *r= malloc(sz);
+  if (!r) common_diee("malloc");
+  return r;
+}