Last change
on this file since 904 was 900, checked in by Bruno Cornec, 18 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 |
|
---|
13 | extern void mr_free(char *allocated);
|
---|
14 | extern void mr_allocstr(char *alloc, const char *orig);
|
---|
15 | extern void mr_asprintf(char **alloc, const char *fmt, ...);
|
---|
16 | extern void mr_vasprintf(char **alloc, const char *fmt, va_list ap);
|
---|
17 | extern void mr_getline(char **lineptr, size_t *n, FILE *stream);
|
---|
18 | extern void *mr_malloc(size_t size);
|
---|
19 |
|
---|
20 | #endif /* MR_MEM_H */
|
---|
Note:
See
TracBrowser
for help on using the repository browser.