lsearch.3 (107704) | lsearch.3 (108037) |
---|---|
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 107704 2002-12-09 13:14:15Z ru $ | 9.\" $FreeBSD: head/lib/libc/stdlib/lsearch.3 108037 2002-12-18 12:45:11Z 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 --- 41 unchanged lines hidden (view full) --- 59If no matching element was found in the array, 60.Fn lsearch 61copies 62.Fa key 63into the position after the last element and increments the 64integer pointed to by 65.Fa nelp . 66.Sh RETURN VALUES | 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 --- 41 unchanged lines hidden (view full) --- 59If no matching element was found in the array, 60.Fn lsearch 61copies 62.Fa key 63into the position after the last element and increments the 64integer pointed to by 65.Fa nelp . 66.Sh RETURN VALUES |
67The |
|
67.Fn lsearch 68and 69.Fn lfind | 68.Fn lsearch 69and 70.Fn lfind |
71functions |
|
70return a pointer to the first element found. 71If no element was found, 72.Fn lsearch 73returns a pointer to the newly added element, whereas 74.Fn lfind 75returns 76.Dv NULL . 77Both functions return --- 24 unchanged lines hidden --- | 72return a pointer to the first element found. 73If no element was found, 74.Fn lsearch 75returns a pointer to the newly added element, whereas 76.Fn lfind 77returns 78.Dv NULL . 79Both functions return --- 24 unchanged lines hidden --- |