repo.or.cz
/
valgrind.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Add bug 494246 to NEWS
[valgrind.git]
/
memcheck
/
tests
/
wrapmallocso.c
blob
985ce56883d55fa6b6271e294d4c660ea422ba5e
1
#include <stdio.h>
2
#include <stdlib.h>
3
4
/* Fake malloc/free functions that just print something. When run
5
under memcheck these functions will be intercepted and not print
6
anything. */
7
8
void
*
malloc
(
size_t
size
)
9
{
10
printf
(
"malloc
\n
"
);
11
return
NULL
;
12
}
13
14
void
free
(
void
*
ptr
)
15
{
16
printf
(
"free
\n
"
);
17
}