MCPcopy Create free account
hub / github.com/PolyMC/PolyMC / hoedown_malloc

Function hoedown_malloc

libraries/hoedown/src/buffer.c:8–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6#include <assert.h>
7
8void *
9hoedown_malloc(size_t size)
10{
11 void *ret = malloc(size);
12
13 if (!ret) {
14 fprintf(stderr, "Allocation failed.\n");
15 abort();
16 }
17
18 return ret;
19}
20
21void *
22hoedown_calloc(size_t nmemb, size_t size)

Callers 4

hoedown_document_newFunction · 0.85
hoedown_buffer_newFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected