• Keine Ergebnisse gefunden

The size of each member of the array is specified by size

N/A
N/A
Protected

Academic year: 2021

Aktie "The size of each member of the array is specified by size"

Copied!
1
0
0

Wird geladen.... (Jetzt Volltext ansehen)

Volltext

(1)

BSEARCH(3) Linux Programmer’s Manual BSEARCH(3)

NAME

bsearch binary search of a sorted array.

SYNOPSIS

#include <stdlib.h>

void *bsearch(const void *key, const void *base, size tnmemb, size t size, int (*compar)(const void *, const void *));

DESCRIPTION

The bsearch() function searches an array of nmemb objects, the initial member of which is pointed to by base, for a member that matches the object pointed to by key. The size of each member of the array is specified by size.

The contents of the array should be in ascending sorted order according to the comparison func- tion referenced by compar. Thecompar routine is expected to have two arguments which point to the key object and to an array member, in that order, and should return an integer less than, equal to, or greater than zero if the key object is found, respectively, to be less than, to match, or be greater than the array member.

RETURN VALUE

The bsearch() function returns a pointer to a matching member of the array, or NULL if no match is found. If there are multiple elements that match the key, the element returned is unspecified.

CONFORMING TO

SVID 3, BSD 4.3, ISO 9899 SEE ALSO

qsort(3)

GNU March 29, 1993 1

Referenzen

ÄHNLICHE DOKUMENTE

Just like the multilevel system of governance that is at the heart of the three papers, the papers themselves consider the different levels: the first paper focuses on the direct

a certain graph, is shown, and he wants to understand what it means — this corre- sponds to reception, though it involves the understanding of a non-linguistic sign;

Advanced methods like the Warren-Averbach analysis [2] allow the determination of a volume and an area averaged mean grain size and so enable to calculate the width of the

A series of directives requiring environmental impact assessment not only for projects, but also for plans and policies would do much to advance the cause of

The point is that only the human sciences are entangled with normativity in a special and much more far-reaching way, namely simply because only the human sciences deal

 The institution of the place of residence which forwards the request on DA006 is obliged to certify in a statement that the person can / cannot be treated within a

o in accordance with the assessment of the institution of the place of residence the treatment can be given within the limit which is medically

Well, according to Hardin, safeguarding the global commons requires a top-down approach administered by prominent international organizations.. The line of reasoning here is