lsearch(3) Library Functions Manual lsearch(3) lfind, lsearch - LIBRARY Standard C library (libc, -lc) #include void *lfind(const void key[.size], const void base[.size * .nmemb], size_t *nmemb, size_t size, int(*compar)(const void [.size], const void [.size])); void *lsearch(const void key[.size], void base[.size * .nmemb], size_t *nmemb, size_t size, int(*compar)(const void [.size], const void [.size])); lfind() lsearch() key base, *nmemb , size . , compar, , key , , , key , . lsearch() , key , *nmemb . , , . lfind() , NULL, . lsearch() , , . attributes(7). +----------------------------+----------------------------------------------------------+--------------------------+ | | | | +----------------------------+----------------------------------------------------------+--------------------------+ |lfind(), lsearch() | | MT-Safe | +----------------------------+----------------------------------------------------------+--------------------------+ POSIX.1-2008. POSIX.1-2001, SVr4, 4.3BSD. libc-4.6.27. . bsearch(3), hsearch(3), tsearch(3) Artyom Kunyov , Azamat Hackimov , Dmitry Bolkhovskikh , Katrin Kutepova , Konstantin Shvaykovskiy , Yuri Kozlov ; GNU (GNU General Public License - GPL, 3 ) , - . - , , <>. Linux man-pages 6.8 2 2024 . lsearch(3)