Binary‐search a sorted object table with optional flags (internal helper).

Synopsis

Declared in <openssl/objects.h>

void const*
OBJ_bsearch_ex_(
    void const* key,
    void const* base,
    int num,
    int size,
    int(* cmp)(void const*, void const*),
    int flags);

Return Value

Pointer to the matching element, or NULL / a related pointer depending on flags.

Parameters

Name

Description

key

Pointer to the search key.

base

Pointer to the first element of the sorted array.

num

Number of elements in the array.

size

Size of each element in bytes.

cmp

Comparison function returning negative, zero, or positive.

flags

Search flags such as OBJ_BSEARCH_VALUE_ON_NOMATCH.

Created with MrDocs