add en*alloc functions

This commit is contained in:
Jakob Kramer
2015-02-11 01:40:52 +01:00
committed by sin
parent 51680535ce
commit 08e93dd4f5
2 changed files with 46 additions and 18 deletions

6
util.h
View File

@@ -22,9 +22,13 @@ char *agetcwd(void);
void apathmax(char **, long *);
void *ecalloc(size_t, size_t);
void *emalloc(size_t size);
void *emalloc(size_t);
void *erealloc(void *, size_t);
char *estrdup(const char *);
void *encalloc(int, size_t, size_t);
void *enmalloc(int, size_t);
void *enrealloc(int, void *, size_t);
char *enstrdup(int, const char *);
void enprintf(int, const char *, ...);
void eprintf(const char *, ...);