mirror of
https://github.com/0intro/wmii
synced 2024-11-22 22:02:30 +03:00
22 lines
349 B
C
22 lines
349 B
C
/*
|
|
* (C)opyright MMIV-MMV Anselm R. Garbe <garbeam at gmail dot com>
|
|
* See LICENSE file for license details.
|
|
*/
|
|
|
|
#include <stdlib.h>
|
|
#include <stdio.h>
|
|
|
|
#include "cext.h"
|
|
|
|
void *emalloc(size_t size)
|
|
{
|
|
void *res = malloc(size);
|
|
|
|
if (!res) {
|
|
fprintf(stderr, "fatal: could not malloc() %d bytes\n",
|
|
(int) size);
|
|
exit(1);
|
|
}
|
|
return res;
|
|
}
|