X-Git-Url: https://git.saurik.com/apple/libc.git/blobdiff_plain/1f2f436a38f7ae2d39a943ad2898d8fed4ed2e58..6465356a983ac139f81d3b7913cdb548477c346c:/stdlib/FreeBSD/lsearch.3 diff --git a/stdlib/FreeBSD/lsearch.3 b/stdlib/FreeBSD/lsearch.3 index 3ad6f6c..5be997c 100644 --- a/stdlib/FreeBSD/lsearch.3 +++ b/stdlib/FreeBSD/lsearch.3 @@ -12,21 +12,21 @@ .Dt LSEARCH 3 .Os .Sh NAME -.Nm lsearch , -.Nm lfind +.Nm lfind , +.Nm lsearch .Nd linear search and append .Sh LIBRARY .Lb libc .Sh SYNOPSIS .In search.h .Ft "void *" -.Fo lsearch -.Fa "const void *key" "void *base" "size_t *nelp" "size_t width" +.Fo lfind +.Fa "const void *key" "const void *base" "size_t *nelp" "size_t width" .Fa "int \*[lp]*compar\*[rp]\*[lp]const void *, const void *\*[rp]" .Fc .Ft "void *" -.Fo lfind -.Fa "const void *key" "const void *base" "size_t *nelp" "size_t width" +.Fo lsearch +.Fa "const void *key" "void *base" "size_t *nelp" "size_t width" .Fa "int \*[lp]*compar\*[rp]\*[lp]const void *, const void *\*[rp]" .Fc .Sh DESCRIPTION @@ -34,8 +34,8 @@ The .Fn lsearch and .Fn lfind -functions walk linearly through an array and compare each element with -the one to be sought using a supplied comparison function. +functions walk linearly through an array, comparing each element with +the one to be sought, by means of a supplied comparison function. .Pp The .Fa key