summaryrefslogtreecommitdiffstats
path: root/eprintf.h
diff options
context:
space:
mode:
Diffstat (limited to 'eprintf.h')
-rw-r--r--eprintf.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/eprintf.h b/eprintf.h
new file mode 100644
index 0000000..0bd662b
--- /dev/null
+++ b/eprintf.h
@@ -0,0 +1,16 @@
+#ifndef EPRINTF_EPRINTF_H
+#define EPRINTF_EPRINTF_H
+#include <stdnoreturn.h>
+#include <stddef.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 *str);
+void *emalloc(size_t size);
+void *ecalloc(size_t nmemb, size_t size);
+void *erealloc(void *p, size_t size);
+void setprogname(const char *name);
+
+#endif // !EPRINTF_EPRINTF_H