Last change
on this file since 1096 was 1096, checked in by Bruno Cornec, 17 years ago |
size_t needs stdio.h
|
-
Property svn:eol-style
set to
native
|
File size:
598 bytes
|
Rev | Line | |
---|
[1054] | 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 |
|
---|
[1061] | 11 | #ifndef _GNU_SOURCE
|
---|
| 12 | #define _GNU_SOURCE
|
---|
| 13 | #endif
|
---|
| 14 | #include <stdarg.h>
|
---|
[1096] | 15 | #include <stdio.h>
|
---|
[1061] | 16 |
|
---|
[1054] | 17 | /* functions (public methods) */
|
---|
| 18 |
|
---|
[1064] | 19 | extern inline void mr_free(char *allocated);
|
---|
| 20 | extern inline void mr_allocstr(char *alloc, const char *orig);
|
---|
| 21 | extern inline void mr_asprintf(char **alloc, const char *fmt, ...);
|
---|
| 22 | extern inline void mr_getline(char **lineptr, size_t *n, FILE *stream);
|
---|
| 23 | extern inline void *mr_malloc(size_t size);
|
---|
[1054] | 24 |
|
---|
| 25 | #endif /* MR_MEM_H */
|
---|
Note:
See
TracBrowser
for help on using the repository browser.