Modular C
C◼real◼ldouble◼bsearch◼bsearch: symbols inserted from C◼tmpl◼bsearch.
+ Collaboration diagram for C◼real◼ldouble◼bsearch◼bsearch: symbols inserted from C◼tmpl◼bsearch.:
#define C◼real◼ldouble◼bsearch(K, B, S)   _Generic((B)+0, C◼real◼ldouble const*: _Generic((K)+0, C◼real◼ldouble: _Intern◼_Ru7hk98g◼C◼real◼ldouble◼bsearch◼bsearch◼vunmut, default: _Intern◼_Ru7hk98g◼C◼real◼ldouble◼bsearch◼bsearch◼unmut), C◼real◼ldouble*: _Generic((K)+0, C◼real◼ldouble: _Intern◼_Ru7hk98g◼C◼real◼ldouble◼bsearch◼bsearch◼vmut, default: _Intern◼_Ru7hk98g◼C◼real◼ldouble◼bsearch◼bsearch◼mut) ) ((K), (B), (S))
 A const safe binary search interface. More...
 

Detailed Description

See also
C◼tmpl◼bsearch snippet: identifiers inserted directly to an importer for details
This import uses the following slot(s)
slotreplacement
C◼tmpl◼bsearch◼TC◼real◼ldouble
C◼tmpl◼bsearch◼comparC◼real◼ldouble◼compar

Macro Definition Documentation

§ C◼real◼ldouble◼bsearch

#define C◼real◼ldouble◼bsearch (   K,
  B,
 
)    _Generic((B)+0, C◼real◼ldouble const*: _Generic((K)+0, C◼real◼ldouble: _Intern◼_Ru7hk98g◼C◼real◼ldouble◼bsearch◼bsearch◼vunmut, default: _Intern◼_Ru7hk98g◼C◼real◼ldouble◼bsearch◼bsearch◼unmut), C◼real◼ldouble*: _Generic((K)+0, C◼real◼ldouble: _Intern◼_Ru7hk98g◼C◼real◼ldouble◼bsearch◼bsearch◼vmut, default: _Intern◼_Ru7hk98g◼C◼real◼ldouble◼bsearch◼bsearch◼mut) ) ((K), (B), (S))

A const safe binary search interface.

The pointer arguments must point to type T, either unqualified or const qualified.

Parameters
Kis either the element to be searched or points to the element that is to be searched for.
Bpoints to a sorted array
Sis the size of the array

Definition at line 187 of file C-real-ldouble-bsearch.c.