SEARCH(3) Library Functions Manual SEARCH(3)

KS_binary_searchsearch utility functions

#include <libks/search.h>

type *
KS_binary_search(type *v, size_t n, int (*cmp)(type *haystack, needle), needle);

The search API provides functions for finding elements in data structures.

Anton Lindqvist <anton@basename.se>

OpenBSD 7.8 August 28, 2025 SEARCH(3)