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

Function malloc_dbg

developer_tools/malloc_dbg.c:129–161  ·  view source on GitHub ↗

* @brief malloc_dbg function is a wrapper around the malloc function. * @details This function calls malloc and allocates the number of bytes passed in the parameters. * If the allocation succeeds then it add the pointer returned by malloc in the mem_info list. * @param bytes Size of the allocation in bytes * @param filename Caller file * @param functionName Caller function * @returns

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 3

inListFunction · 0.85
addMemInfoFunction · 0.85
editInfoFunction · 0.85

Tested by

no test coverage detected