aboutsummaryrefslogtreecommitdiffstats
path: root/memutil.h
blob: dbed7facdfa00db1b740513675bf15e19aa56c53 (plain)
1
2
3
4
5
6
7
8
9
10
#include <stdlib.h>
#include <stdarg.h>

int xasprintf(char **strp, const char *fmt, ...);
int xvasprintf(char **ret, const char *format, va_list ap);
void *xalloc(size_t size);
void *xalloc_nonzero(size_t size);
void *xrealloc(void *old, size_t size);
char *xstrdup(char *str);
void Enomem(void);