MCPcopy 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
8static void grow(struct hc_vector *v) {
9 hc_vector_grow(v, v->capacity ? v->capacity*2 : 2);
10}
11
12struct hc_vector *hc_vector_init(struct hc_vector *v,
13 struct hc_malloc *malloc,

Callers 1

hc_vector_pushFunction · 0.85

Calls 1

hc_vector_growFunction · 0.85

Tested by

no test coverage detected