MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / cmp

Function cmp

test/core/test_bsearch.c:11–13  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9#include <stdio.h>
10
11int cmp(const void* key, const void* member) {
12 return *(int*)key - *(int*)member;
13}
14
15void printResult(int* needle, int* haystack, unsigned int len) {
16 void* result = bsearch(needle, haystack, len, sizeof(unsigned int), cmp);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected