MCPcopy Create free account
hub / github.com/acl-dev/acl / main

Function main

lib_acl/samples/debug_malloc/main.cpp:3–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1#include "lib_acl.h"
2
3int main(int argc acl_unused, char *argv[] acl_unused)
4{
5 char *ptr2;
6 char *ptr3 = acl_mystrdup("hello world!");
7 int i;
8
9 acl_debug_malloc_init(NULL, "log.txt");
10
11 for (i = 0; i < 100; i++) {
12 (void) acl_mymalloc(100);
13 ptr2 = (char*) acl_mymalloc(100);
14 acl_myfree(ptr2);
15 }
16
17 acl_myfree(ptr2);
18 acl_myfree(ptr3);
19 return 0;
20}

Callers

nothing calls this directly

Calls 1

acl_debug_malloc_initFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…