MCPcopy Create free account
hub / github.com/RedisGraph/RedisGraph / remove_value

Function remove_value

tests/unit/test_heap.c:34–46  ·  view source on GitHub ↗

remove value 'v' from array

Source from the content-addressed store, hash-verified

32
33// remove value 'v' from array
34static void remove_value
35(
36 int *arr,
37 int v
38) {
39 int n = array_len(arr);
40 for(int i = 0; i < n; i++) {
41 if(arr[i] == v) {
42 array_del_fast(arr, i);
43 break;
44 }
45 }
46}
47
48// heap compare function
49static int cmp

Callers 1

test_heapFuzzFunction · 0.85

Calls 1

array_lenFunction · 0.85

Tested by

no test coverage detected