Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/codr7/hacktical-c
/ grow
Function
grow
vector/vector.c:8–10 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
6
#include
"malloc1/malloc1.h"
7
8
static void grow(struct hc_vector *v) {
9
hc_vector_grow(v, v->capacity ? v->capacity*2 : 2);
10
}
11
12
struct hc_vector *hc_vector_init(struct hc_vector *v,
13
struct hc_malloc *malloc,
Callers
1
hc_vector_push
Function · 0.85
Calls
1
hc_vector_grow
Function · 0.85
Tested by
no test coverage detected