Archived
1
0
Fork 0
This repository has been archived on 2026-05-10. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
archived/src/xalloc.h
2010-11-03 08:35:58 +01:00

28 lines
635 B
C

/* 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 __XALLOC_H
#define __XALLOC_H
#include <stddef.h>
void* xmalloc(size_t);
void* xmallocz(size_t);
void* xrealloc(void *, size_t);
char* xstrdup(const char *);
void* xmemdup(const void *, size_t);
void xfree(void *);
#endif /* __XALLOC_H */