From c4c3178f2bc2b85b1d3af928f3e841bd6eb43e35 Mon Sep 17 00:00:00 2001 From: Tomasz Kramkowski Date: Thu, 24 Nov 2016 21:06:24 +0000 Subject: eprintf utilities --- eprintf.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 eprintf.h (limited to 'eprintf.h') diff --git a/eprintf.h b/eprintf.h new file mode 100644 index 0000000..aecc3a6 --- /dev/null +++ b/eprintf.h @@ -0,0 +1,15 @@ +#ifndef EPRINTF_H +#define EPRINTF_H +#include + +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 *progname(void); +void setprogname(const char *); + +#endif /* !EPRINTF_H */ -- cgit v1.2.3-54-g00ecf