repo.or.cz
/
vde.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
readchar fix
[vde.git]
/
vde-2
/
utils
/
malloc.c
blob
86c6b3b8417a064bd20232d7ef47cf4b537cbf52
1
2
#if HAVE_CONFIG_H
3
# include <config.h>
4
#endif
5
#undef malloc
6
7
#include <sys/types.h>
8
9
void
*
malloc
();
10
11
/* Allocate an N-byte block of memory from the heap.
12
If N is zero, allocate a 1-byte block. */
13
14
void
*
15
rpl_malloc
(
size_t
n
)
16
{
17
if
(
n
==
0
)
18
n
=
1
;
19
return
malloc
(
n
);
20
}
21
22