summaryrefslogtreecommitdiffstats
path: root/eprintf.h
blob: 1afc4a6a4cb050ca6de05148d26410db91cc82e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#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)));
void deprintf(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);
void setdebug(int d);

#endif // !EPRINTF_EPRINTF_H