2.4 API
Generally one should use AMPolice externally with the program, but with version 1.5 onwards you have a possibility to integrate AMPolice with your code for detecting tough leaks.
NOTE : You still need to use ./ampolice <options>  test_binary < options> for starting up the application
how to use the API is very simple ...
int i= mpapistart(int id);
<Do u code here >
const struct mpapi * = mpapistop(int id);
then you can use this structure for the information exploitation.