added whiteout
[unix-history] / usr / src / lib / libc / stdlib / bsearch.3
index a1aa429..8d39d74 100644 (file)
@@ -1,9 +1,13 @@
-.\" Copyright (c) 1990, 1991 The Regents of the University of California.
-.\" All rights reserved.
+.\" Copyright (c) 1990, 1991, 1993, 1994
+.\"    The Regents of the University of California.  All rights reserved.
+.\"
+.\" This code is derived from software contributed to Berkeley by
+.\" the American National Standards Committee X3, on Information
+.\" Processing Systems.
 .\"
 .\" %sccs.include.redist.man%
 .\"
 .\"
 .\" %sccs.include.redist.man%
 .\"
-.\"     @(#)bsearch.3  5.4 (Berkeley) %G%
+.\"     @(#)bsearch.3  8.3 (Berkeley) %G%
 .\"
 .Dd 
 .Dt BSEARCH 3
 .\"
 .Dd 
 .Dt BSEARCH 3
@@ -20,7 +24,7 @@ The
 .Fn bsearch
 function searches an array of
 .Fa nmemb
 .Fn bsearch
 function searches an array of
 .Fa nmemb
-objects, the inital member of which is 
+objects, the initial member of which is 
 pointed to by
 .Fa base ,
 for a member that matches the object pointed to by
 pointed to by
 .Fa base ,
 for a member that matches the object pointed to by
@@ -34,7 +38,7 @@ to the comparison function referenced by
 The
 .Fa compar
 routine
 The
 .Fa compar
 routine
-is expected to have two
+is expected to have
 two arguments which point to the
 .Fa key
 object and to an array member, in that order, and should return an integer
 two arguments which point to the
 .Fa key
 object and to an array member, in that order, and should return an integer
@@ -49,7 +53,7 @@ function returns a pointer to a matching member of the array, or a null
 pointer if no match is found.
 If two members compare as equal, which member is matched is unspecified.
 .Sh SEE ALSO
 pointer if no match is found.
 If two members compare as equal, which member is matched is unspecified.
 .Sh SEE ALSO
-.Xr hsearch 3 ,
+.Xr db 3 ,
 .Xr lsearch 3 ,
 .Xr qsort 3 ,
 .\" .Xr tsearch 3
 .Xr lsearch 3 ,
 .Xr qsort 3 ,
 .\" .Xr tsearch 3