MCPcopy Create free account
hub / github.com/ElementsProject/lightning / any_equal

Function any_equal

common/test/run-tal_arr_randomize.c:104–113  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

102/* AUTOGENERATED MOCKS END */
103
104static bool any_equal(const char **arr, size_t n)
105{
106 for (size_t i = 0; i < n; i++) {
107 for (size_t j = i+1; j < n; j++) {
108 if (arr[i] == arr[j])
109 return true;
110 }
111 }
112 return false;
113}
114
115static bool one_of(const char **arr, size_t n, const char *word)
116{

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected