Code
Hub
Workspaces
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/antirez/botlib
/ xrealloc
Function
xrealloc
botlib.c:219–226 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
217
}
218
219
void *xrealloc(void *ptr, size_t size) {
220
void *p = realloc(ptr,size);
221
if (p == NULL) {
222
printf(
"Out of memory: realloc(%zu)"
, size);
223
exit(1);
224
}
225
return p;
226
}
227
228
void xfree(void *ptr) {
229
free(ptr);
Callers
1
botProcessUpdates
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected