aboutsummaryrefslogtreecommitdiffstats
path: root/eprintf.h
diff options
context:
space:
mode:
Diffstat (limited to 'eprintf.h')
-rw-r--r--eprintf.h15
1 files changed, 15 insertions, 0 deletions
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 <stdnoreturn.h>
+
+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 */