MCPcopy Create free account
hub / github.com/codr7/hacktical-c / hc_vector_pop

Function hc_vector_pop

vector/vector.c:66–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

64}
65
66void *hc_vector_pop(struct hc_vector *v) {
67 if (!v->length) { return NULL; }
68 v->end -= v->item_size;
69 v->length--;
70 return v->end;
71}
72
73void *hc_vector_insert(struct hc_vector *v, const size_t i, const size_t n) {
74 const size_t m = v->length+n;

Callers 4

vector_testsFunction · 0.85
hc_vm_popFunction · 0.85
hc_catch_popFunction · 0.85
_hc_throwFunction · 0.85

Calls

no outgoing calls

Tested by 1

vector_testsFunction · 0.68