MCPcopy Create free account
hub / github.com/git/git / strvec_remove

Function strvec_remove

strvec.c:92–99  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

90}
91
92void strvec_remove(struct strvec *array, size_t idx)
93{
94 if (idx >= array->nr)
95 BUG("index outside of array boundary");
96 free((char *)array->v[idx]);
97 memmove(array->v + idx, array->v + idx + 1, (array->nr - idx) * sizeof(char *));
98 array->nr--;
99}
100
101void strvec_pop(struct strvec *array)
102{

Callers 4

cmd_mvFunction · 0.85

Calls

no outgoing calls

Tested by 3