MCPcopy Index your code
hub / github.com/git/git / strvec_detach

Function strvec_detach

strvec.c:140–149  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

138}
139
140const char **strvec_detach(struct strvec *array)
141{
142 if (array->v == empty_strvec)
143 return xcalloc(1, sizeof(const char *));
144 else {
145 const char **ret = array->v;
146 strvec_init(array);
147 return ret;
148 }
149}

Callers 1

test_strvec__detachFunction · 0.85

Calls 2

xcallocFunction · 0.85
strvec_initFunction · 0.85

Tested by 1

test_strvec__detachFunction · 0.68