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

Function git_stable_qsort

stable-qsort.c:47–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45}
46
47void git_stable_qsort(void *b, size_t n, size_t s,
48 int (*cmp)(const void *, const void *))
49{
50 const size_t size = st_mult(n, s);
51 char *tmp;
52
53 tmp = xmalloc(size);
54 msort_with_tmp(b, n, s, cmp, tmp);
55 free(tmp);
56}

Callers 1

make_environment_blockFunction · 0.85

Calls 3

st_multFunction · 0.85
xmallocFunction · 0.70
msort_with_tmpFunction · 0.70

Tested by

no test coverage detected