aboutsummaryrefslogtreecommitdiffstats
path: root/eprintf.h
diff options
context:
space:
mode:
authorTomasz Kramkowski <tk@the-tk.com>2016-12-22 14:18:38 +0100
committerTomasz Kramkowski <tk@the-tk.com>2016-12-22 14:18:38 +0100
commit04be5b1456b381303709fdc90385fe74dad1bd10 (patch)
treeb8f07ed1a0037587739d166d23954d3ca8102d81 /eprintf.h
parentfad06882fe3305983292dfa34d335ec461761b61 (diff)
downloadhktool-04be5b1456b381303709fdc90385fe74dad1bd10.tar.gz
hktool-04be5b1456b381303709fdc90385fe74dad1bd10.tar.xz
hktool-04be5b1456b381303709fdc90385fe74dad1bd10.zip
eprintf: add ecalloc
Add ecalloc as an error handling calloc wrapper.
Diffstat (limited to 'eprintf.h')
-rw-r--r--eprintf.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/eprintf.h b/eprintf.h
index aecc3a6..bfe4ca8 100644
--- a/eprintf.h
+++ b/eprintf.h
@@ -6,10 +6,11 @@ noreturn void eprintf(const char *fmt, ...)
__attribute__((format(printf, 1, 2)));
void weprintf(const char *fmt, ...)
__attribute__((format(printf, 1, 2)));
-char *estrdup(const char *);
-void *emalloc(size_t);
-void *erealloc(void *, size_t);
+char *estrdup(const char *str);
+void *emalloc(size_t size);
+void *ecalloc(size_t nmemb, size_t size);
+void *erealloc(void *p, size_t size);
char *progname(void);
-void setprogname(const char *);
+void setprogname(const char *name);
#endif /* !EPRINTF_H */