Files
Linux/include/linux/bsearch.h
T
Andy Shevchenko e8877ec5db lib/bsearch: Use generic type for comparator function
Comparator function type, cmp_func_t, is defined in the types.h,
use it in bsearch() and, thus, add more sense to the corresponding
comment in the code.

Link: http://lkml.kernel.org/r/[email protected]

Signed-off-by: Andy Shevchenko <[email protected]>
Signed-off-by: Steven Rostedt (VMware) <[email protected]>
2019-11-14 13:15:11 -05:00

11 lines
245 B
C

/* SPDX-License-Identifier: GPL-2.0 */
#ifndef _LINUX_BSEARCH_H
#define _LINUX_BSEARCH_H
#include <linux/types.h>
void *bsearch(const void *key, const void *base, size_t num, size_t size,
cmp_func_t cmp);
#endif /* _LINUX_BSEARCH_H */