html: put a new line after body
[ctxt.git] / util.c
blob4717e2b2918e8c7888e9fc8679e9a2a6e2d0d888
1 #include <stdlib.h>
2 #include <unistd.h>
4 void die(char *msg)
6 write(STDERR_FILENO, msg, strlen(msg));
7 exit(1);
10 void *xmalloc(size_t size)
12 void *value = malloc(size);
13 if (!value)
14 die("Out of memory!\n");
15 return value;