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

Function hc_vector_peek

vector/vector.c:62–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60}
61
62void *hc_vector_peek(struct hc_vector *v) {
63 return v->length ? v->end - v->item_size : NULL;
64}
65
66void *hc_vector_pop(struct hc_vector *v) {
67 if (!v->length) { return NULL; }

Callers 2

vector_testsFunction · 0.85
hc_vm_peekFunction · 0.85

Calls

no outgoing calls

Tested by 1

vector_testsFunction · 0.68