<div dir="ltr">Hi,<div><br></div><div>I would like to wrap some of the library functions such as malloc() into for example:<br><br>malloc_wrapper(int size) {<br>    malloc(size+4);  //call the real malloc here<br>}<br><br>and have all uses of malloc replaced with malloc_wrapper. Is there a way to do that?<br clear="all"><div><br></div>-- <br><div class="m_-5841365348402289103gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><font size="1" color="#999999">----------------</font></div><div><font size="1" color="#999999">Barbora Murinová</font></div><div><font size="1" color="#999999">The University of Edinburgh</font></div><div><font size="1" color="#999999">SK: <a href="tel:+421%20905%20718%20390" value="+421905718390" target="_blank">+421905718390</a><br>UK: <a href="tel:+44%207477%20833795" value="+447477833795" target="_blank">+447477833795</a></font></div></div></div>
</div></div>