16 lines
291 B
C
16 lines
291 B
C
|
|
#ifndef _ERROR_H
|
||
|
|
#define _ERROR_H
|
||
|
|
|
||
|
|
#include <stddef.h>
|
||
|
|
#include <stdarg.h>
|
||
|
|
|
||
|
|
void *xmalloc(size_t);
|
||
|
|
void *xcalloc(size_t, size_t);
|
||
|
|
void *xrealloc(void *, size_t);
|
||
|
|
int xasprintf(char **, const char *, ...);
|
||
|
|
int xvasprintf(char **, const char *, va_list);
|
||
|
|
|
||
|
|
char *xstrdup(const char *);
|
||
|
|
|
||
|
|
#endif
|