MCPcopy Create free account
hub / github.com/SmingHub/Sming / getSentinel

Function getSentinel

Sming/Components/malloc_count/malloc_count.cpp:94–97  ·  view source on GitHub ↗

Get pointer to sentinel */

Source from the content-addressed store, hash-verified

92
93/* Get pointer to sentinel */
94size_t* getSentinel(void* ptr)
95{
96 return offsetPointer<size_t*>(ptr, -sizeof(size_t));
97}
98
99/* output */
100#define PPREFIX "MC## "

Callers 3

mc_mallocFunction · 0.85
mc_freeFunction · 0.85
mc_reallocFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected