This repository has been archived on 2025-05-11. You can view files and clone it, but cannot push or open issues or pull requests.
brwsh/xalloc.h
2021-11-11 17:22:17 +01:00

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