MCPcopy Create free account
hub / github.com/TheAlgorithms/C / addMemInfo

Function addMemInfo

developer_tools/malloc_dbg.c:51–70  ·  view source on GitHub ↗

* @brief addMemInfo function add a memory allocation in the memoryInfo list. * @details This function creates a new element and add it on top of the list * @param memoryInfo Pointer to the doubly linked list used to store all of the allocations * @param ptrToreturn Pointer returned by malloc or calloc * @param bytes Size in bytes of the allocation * @param line Line where the allocation

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

malloc_dbgFunction · 0.85
calloc_dbgFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected