#include "gwlib/gwlib.h"Include dependency graph for test_mem.c:

Go to the source code of this file.
Functions | |
| int | main (void) |
|
|
Definition at line 66 of file test_mem.c. References debug(), gwlib_init(), and gwlib_shutdown(). 00066 {
00067 void *p;
00068 long i;
00069
00070 gwlib_init();
00071
00072 p = gw_malloc(100);
00073 gw_free(p);
00074 gw_check_leaks();
00075
00076 p = gw_malloc(100);
00077 gw_check_leaks();
00078 gw_free(p);
00079 gw_check_leaks();
00080
00081 for (i = 0; i < 1000; ++i) {
00082 p = gw_malloc(100);
00083 debug("", 0, "i = %ld", i);
00084 }
00085
00086 gwlib_shutdown();
00087
00088 return 0;
00089 }
|
Here is the call graph for this function:
