diff options
author | Tomasz Kramkowski <tk@the-tk.com> | 2018-03-01 11:44:02 +0000 |
---|---|---|
committer | Tomasz Kramkowski <tk@the-tk.com> | 2018-03-01 11:44:02 +0000 |
commit | 7a802c4ff4c715f50825d833fa44f2ad1a5993f4 (patch) | |
tree | fe4d734653f6367b516e19f2bf7c8f29870b94b9 /eprintf.h | |
download | eprintf-7a802c4ff4c715f50825d833fa44f2ad1a5993f4.tar.gz eprintf-7a802c4ff4c715f50825d833fa44f2ad1a5993f4.tar.xz eprintf-7a802c4ff4c715f50825d833fa44f2ad1a5993f4.zip |
init commit
Diffstat (limited to 'eprintf.h')
-rw-r--r-- | eprintf.h | 16 |
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 |