Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
41
void hc_vector_clear(struct hc_vector *v) {
42
v->length = 0;
43
v->end = v->start;
44
}
45
46
void *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_tests
Function · 0.85
dsl_benchmarks
Function · 0.85
hc_set_clear
Function · 0.85
Calls
no outgoing calls
Tested by
1
vector_tests
Function · 0.68