MCPcopy Create free account
hub / github.com/antirez/ds4 / web_xmalloc

Function web_xmalloc

ds4_web.c:66–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

64} web_tab;
65
66static void *web_xmalloc(size_t n) {
67 void *p = malloc(n ? n : 1);
68 if (!p) {
69 perror("ds4_web: malloc");
70 exit(1);
71 }
72 return p;
73}
74
75static char *web_xstrdup(const char *s) {
76 if (!s) s = "";

Callers 4

web_xstrdupFunction · 0.85
web_base64Function · 0.85
web_ws_read_messageFunction · 0.85
ds4_web_createFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected