UE: factorize calloc() calls and exit on failure
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user