lsearch.3 (142de08d3a1eb82b259549c4a84edcb39b85414e) | lsearch.3 (1fae73b137bfc5a237d7258e3c667ba87a36b7ff) |
---|---|
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.\" --- 50 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 | 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.\" --- 50 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 --- |