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

Function hc_vector_clear

vector/vector.c:41–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39}
40
41void hc_vector_clear(struct hc_vector *v) {
42 v->length = 0;
43 v->end = v->start;
44}
45
46void *hc_vector_get(struct hc_vector *v, const size_t i) {
47 return v->start ? v->start + v->item_size*i : NULL;

Callers 3

vector_testsFunction · 0.85
dsl_benchmarksFunction · 0.85
hc_set_clearFunction · 0.85

Calls

no outgoing calls

Tested by 1

vector_testsFunction · 0.68