/* * $Id$ * * Header file of mr_mem: a set of function manipulating memory * Provided under the GPL v2 */ #ifndef MR_MEM_H #define MR_MEM_H #ifndef _GNU_SOURCE #define _GNU_SOURCE #endif #include /* functions (public methods) */ extern inline void mr_free(char *allocated); extern inline void mr_allocstr(char *alloc, const char *orig); extern inline void mr_asprintf(char **alloc, const char *fmt, ...); extern inline void mr_getline(char **lineptr, size_t *n, FILE *stream); extern inline void *mr_malloc(size_t size); #endif /* MR_MEM_H */