Archived
1
0
Fork 0
This commit is contained in:
H Hautakoski 2010-09-18 19:01:33 +02:00 committed by Henrik Hautakoski
parent 25d789c77b
commit 2c2c0781d9
6 changed files with 190 additions and 26 deletions

26
src/common/xalloc.h Normal file
View file

@ -0,0 +1,26 @@
/* common/xalloc.h - stricter memory allocation.
*
* Copyright (C) 2010 Henrik Hautakoski <henrik@fiktivkod.org>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*/
#ifndef __COMMON_XALLOC_H
#define __COMMON_XALLOC_H
#include <stddef.h>
void* xmalloc(size_t);
void* xmallocz(size_t);
void* xrealloc(void *, size_t);
char* xstrdup(const char *);
void xfree(void *);
#endif /* __COMMON_XALLOC_H */