MCPcopy Create free account
hub / github.com/NetHack/NetHack / dispose_ptr

Function dispose_ptr

outdated/sys/mac/mactty.c:97–105  ·  view source on GitHub ↗

* Dispose a pointer using the set memory-allocator */

Source from the content-addressed store, hash-verified

95 * Dispose a pointer using the set memory-allocator
96 */
97static short
98dispose_ptr(void *ptr)
99{
100 if (!ptr) {
101 return noErr; /* Silently accept disposing nulls */
102 }
103 DisposePtr(ptr);
104 return MemError();
105}
106
107#if 0 /* Use alloc.c instead */
108/*

Callers 2

free_bitsFunction · 0.85
destroy_ttyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected