Import ealloc.c from ubase

This commit is contained in:
sin
2014-11-14 18:09:48 +00:00
parent 35d467d971
commit 2982d88533
3 changed files with 53 additions and 0 deletions

5
util.h
View File

@@ -17,14 +17,19 @@ extern char *argv0;
char *agetcwd(void);
void apathmax(char **, long *);
void enmasse(int, char **, int (*)(const char *, const char *));
void *ecalloc(size_t, size_t);
void *emalloc(size_t size);
void *erealloc(void *, size_t);
void eprintf(const char *, ...);
void enprintf(int, const char *, ...);
char *estrdup(const char *);
double estrtod(const char *);
long estrtol(const char *, int);
void fnck(const char *, const char *, int (*)(const char *, const char *));
char *humansize(double);
void putword(const char *);
void recurse(const char *, void (*)(const char *));
#undef strlcat
size_t strlcat(char *, const char *, size_t);
#undef strlcpy