On Thu, Jul 17, 2014 at 8:05 PM, patrick keshishian <pkesh...@gmail.com> wrote: > Silly even though, the description of lsearch says it will modify > ("it shall be added at the end of") the table, for which "base > argument points to the first element"?
Ah, I didn't pay close attention to the definition and assumed it was simply a search function like memchr() or strstr(). If it might modify memory, then yes, making it non-const absolutely makes sense.