diff options
author | justanothercatgirl <sotov2070@gmail.com> | 2024-06-28 00:06:40 +0300 |
---|---|---|
committer | justanothercatgirl <sotov2070@gmail.com> | 2024-06-28 00:52:08 +0300 |
commit | ebad5ad23dc6893b0fb75ba04aa961a25a532b5f (patch) | |
tree | c025946d4248b46aceae3e15c19efd29b2d12af2 /tests/binary_search.c | |
parent | 28bb6070e64f25aa6ff64f81b59a7f52e12d4092 (diff) |
Finished hash_map implementation
TODO: fix that one linked list function
Diffstat (limited to 'tests/binary_search.c')
-rw-r--r-- | tests/binary_search.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/binary_search.c b/tests/binary_search.c index e3a973b..ce35d14 100644 --- a/tests/binary_search.c +++ b/tests/binary_search.c @@ -4,7 +4,7 @@ #define prints(el) \ do {printf("search %i: %s\n", el, (array_binary_search(array, &el, __default_int_cmp)) ? "true" : "false");} while(0) -int main() { +int main(void) { int data[] = {9, 5, 2, 7, 6, 10, 5, 9, 7}; // no 8 there int* array = array_new(int, sizeof(data)/sizeof(data[0])); memcpy(array, data, sizeof(data)); |