source: trunk/mondo/src/include/mr_mem.h @ 900

Last change on this file since 900 was 900, checked in by Bruno Cornec, 14 years ago

Huge patch to introduce low level functions that will bw used everywhere (mr_free, mr_asprintf, ...)
Nearly linking now due to that.

  • Property svn:eol-style set to native
File size: 545 bytes
Line 
1/*
2 * $Id$
3 *
4 *     Header file of mr_mem: a set of function manipulating memory
5 *     Provided under the GPL v2
6 */
7
8#ifndef MR_MEM_H
9#define MR_MEM_H
10
11/* functions (public methods) */
12
13extern void mr_free(char *allocated);
14extern void mr_allocstr(char *alloc, const char *orig);
15extern void mr_asprintf(char **alloc, const char *fmt, ...);
16extern void mr_vasprintf(char **alloc, const char *fmt, va_list ap);
17extern void mr_getline(char **lineptr, size_t *n, FILE *stream);
18extern void *mr_malloc(size_t size);
19
20#endif                          /* MR_MEM_H */
Note: See TracBrowser for help on using the repository browser.