UE: factorize calloc() calls and exit on failure

This commit is contained in:
Frédéric Leroy
2017-01-25 13:29:10 +01:00
parent dcf35b2af1
commit e36aee0b7f
13 changed files with 62 additions and 147 deletions
+9
View File
@@ -0,0 +1,9 @@
#ifndef _UTILS_H
#define _UTILS_H
#include <sys/types.h>
void *calloc_or_fail(size_t size);
void *malloc_or_fail(size_t size);
#endif