MCPcopy Index your code
hub / github.com/NetHack/NetHack / fmt_ptr

Function fmt_ptr

src/alloc.c:124–135  ·  view source on GitHub ↗

format a pointer for display purposes; returns a static buffer */

Source from the content-addressed store, hash-verified

122
123/* format a pointer for display purposes; returns a static buffer */
124char *
125fmt_ptr(const genericptr ptr)
126{
127 char *buf;
128
129 buf = ptrbuf[ptrbufidx];
130 if (++ptrbufidx >= PTRBUFCNT)
131 ptrbufidx = 0;
132
133 Sprintf(buf, PTR_FMT, (PTR_TYP) ptr);
134 return buf;
135}
136
137#ifdef MONITOR_HEAP
138

Callers 15

trace_getlinFunction · 0.85
nhallocFunction · 0.85
nhreallocFunction · 0.85
nhfreeFunction · 0.85
sanity_check_wormFunction · 0.85
wormno_sanity_checkFunction · 0.85
minimal_monnamFunction · 0.85
del_light_sourceFunction · 0.85
delete_lsFunction · 0.85
wiz_light_sourcesFunction · 0.85
print_queueFunction · 0.85
timer_sanity_checkFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected