bsearch man page on OSF1

Man page or keyword search:  
man Server   12896 pages
apropos Keyword Search (all sections)
Output format
OSF1 logo
[printable version]

bsearch(3)							    bsearch(3)

NAME
       bsearch - Performs a binary search

SYNOPSIS
       #include <stdlib.h>

       void *bsearch(
	       const void *key,
	       const void *base,
	       size_t nmemb,
	       size_t size,
	       int (*compar)(const void *, const void *) );

LIBRARY
       Standard C Library (libc)

STANDARDS
       Interfaces  documented on this reference page conform to industry stan‐
       dards as follows:

       bsearch(): XSH5.0

       Refer to the standards(5) reference page	 for  more  information	 about
       industry standards and associated tags.

PARAMETERS
       Target  of  search.  Points to the initial object in the array.	Speci‐
       fies the number of elements in the array.  Specifies the byte  size  of
       each element of the array.  Points to the comparison function, which is
       called with two parameters that point to the key object and to an array
       member, in that order.

DESCRIPTION
       The bsearch() function does a binary search and returns a pointer in an
       array that indicates where an object is found.

       The compar comparison function is called with two parameters that point
       to  objects that are compared during the search.	 This function returns
       an integer less than, equal to, or  greater  than  0  (zero)  depending
       whether	the object pointed to by the key parameter is considered to be
       less than, equal to, or greater than the array element.

NOTES
       [Tru64 UNIX]  The bsearch() function is reentrant, but care  should  be
       taken  to  ensure that the function supplied as argument compar is also
       reentrant.

RETURN VALUES
       Upon successful completion, the bsearch() function returns a pointer to
       a  matching  object  in	the array. A NULL is returned when no match is
       found. When two or more objects compare equally, the returned object is
       unspecified.

SEE ALSO
       Functions: hsearch(3), lsearch(3), qsort(3), tsearch(3)

       Standards: standards(5)

								    bsearch(3)
[top]
                             _         _         _ 
                            | |       | |       | |     
                            | |       | |       | |     
                         __ | | __ __ | | __ __ | | __  
                         \ \| |/ / \ \| |/ / \ \| |/ /  
                          \ \ / /   \ \ / /   \ \ / /   
                           \   /     \   /     \   /    
                            \_/       \_/       \_/ 
More information is available in HTML format for server OSF1

List of man pages available for OSF1

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net