Last change
on this file since 5685 was
5258,
checked in by jack, 17 years ago
|
anugavis: add malloc.c because AC_FUNC_MALLOC wants it.
|
File size:
308 bytes
|
Rev | Line | |
---|
[5258] | 1 | #if HAVE_CONFIG_H |
---|
| 2 | # include <config.h> |
---|
| 3 | #endif |
---|
| 4 | #undef malloc |
---|
| 5 | |
---|
| 6 | #include <sys/types.h> |
---|
| 7 | |
---|
| 8 | void *malloc (); |
---|
| 9 | |
---|
| 10 | /* Allocate an N-byte block of memory from the heap. |
---|
| 11 | If N is zero, allocate a 1-byte block. */ |
---|
| 12 | |
---|
| 13 | void* rpl_malloc (size_t n) |
---|
| 14 | { |
---|
| 15 | if (n == 0) |
---|
| 16 | n = 1; |
---|
| 17 | return malloc (n); |
---|
| 18 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.