summaryrefslogtreecommitdiffstats
path: root/eprintf.h
blob: 0bd662ba325e83d13ced2c959f3446c09411dbab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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