repo.or.cz
/
minix3.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
tools/llvm: Do not build with symbols
[minix3.git]
/
external
/
bsd
/
flex
/
dist
/
lib
/
malloc.c
blob
04f88c75651851ccadb1f4e9472f3740e5fbb4fe
1
/* $NetBSD: malloc.c,v 1.1.1.1 2013/04/06 14:05:53 christos Exp $ */
2
3
#include <config.h>
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
*
14
rpl_malloc
(
size_t
n
)
15
{
16
if
(
n
==
0
)
17
n
=
1
;
18
return
malloc
(
n
);
19
}