C/C++
mtlib.txt
Associated article: The Mtlib Memory-Tracking Library
Tags: C/C++
Published source code accompanying the article by Marco Tabini in which he presents Mtlib, short for "memory tracking libraries"--a set of tools that automates the process of tracking and identifying memory leaks. Also see MTLIB.ZIP.
The Mtlib Memory Tracking Library
by Marco Tabini
Example 1:
char *test(int a)
{
char *tmp;
tmp = malloc (3);
if (a > 99)
return FALSE;
sprintf (tmp, "%d", a);
return tmp;
}
char *useme()
{
int i;
char *str;
for (i = 0; i <= 100; ...


