On Mon, 06 Dec 2021 22:37:02 -0600, Scott Cheloha wrote:

> lsearch(3) is just lfind(3) + append.  If we write it that way we
> shrink lsearch.c.  The third function, linear_base(), is just added
> complexity.  The indirection buys us nothing.
>
> I don't think we need to keep the historical comment, either.
> lsearch(3) is pure computation, it does not set errno: The End.
> The spec defines no errors, either.

This results in clearer code.  OK millert@

 - todd

Reply via email to