Deleted Added
full compact
lsearch.3 (108037) lsearch.3 (108087)
1.\"
2.\" Initial implementation:
3.\" Copyright (c) 2002 Robert Drehmel
4.\" All rights reserved.
5.\"
6.\" As long as the above copyright statement and this notice remain
7.\" unchanged, you can do what ever you want with this file.
8.\"
1.\"
2.\" Initial implementation:
3.\" Copyright (c) 2002 Robert Drehmel
4.\" All rights reserved.
5.\"
6.\" As long as the above copyright statement and this notice remain
7.\" unchanged, you can do what ever you want with this file.
8.\"
9.\" $FreeBSD: head/lib/libc/stdlib/lsearch.3 108037 2002-12-18 12:45:11Z ru $
9.\" $FreeBSD: head/lib/libc/stdlib/lsearch.3 108087 2002-12-19 09:40:28Z ru $
10.\"
11.Dd October 11, 2002
12.Dt LSEARCH 3
13.Os
14.Sh NAME
15.Nm lsearch ,
16.Nm lfind
17.Nd linear search and append

--- 14 unchanged lines hidden (view full) ---

32.Sh DESCRIPTION
33The
34.Fn lsearch
35and
36.Fn lfind
37functions walk linearly through an array and compare each element with
38the one to be sought using a supplied comparison function.
39.Pp
10.\"
11.Dd October 11, 2002
12.Dt LSEARCH 3
13.Os
14.Sh NAME
15.Nm lsearch ,
16.Nm lfind
17.Nd linear search and append

--- 14 unchanged lines hidden (view full) ---

32.Sh DESCRIPTION
33The
34.Fn lsearch
35and
36.Fn lfind
37functions walk linearly through an array and compare each element with
38the one to be sought using a supplied comparison function.
39.Pp
40The
40.Fa key
41.Fa key
42argument
41points to an element that matches the one that is searched.
42The array's address in memory is denoted by the
43.Fa base
44argument.
45The width of one element (i.e., the size as returned by
46.Fn sizeof )
47is passed as the
48.Fa width

--- 55 unchanged lines hidden ---
43points to an element that matches the one that is searched.
44The array's address in memory is denoted by the
45.Fa base
46argument.
47The width of one element (i.e., the size as returned by
48.Fn sizeof )
49is passed as the
50.Fa width

--- 55 unchanged lines hidden ---