21 lines
379 B
C
21 lines
379 B
C
#ifndef MSL_SEARCH_H
|
|
#define MSL_SEARCH_H
|
|
|
|
#include <stddef.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
typedef int (*COMPARE_FUNC)(const void*, const void*);
|
|
|
|
void* bsearch(const void* key, const void* ptr, size_t count, size_t size, COMPARE_FUNC comp);
|
|
|
|
void qsort(void* ptr, size_t count, size_t size, COMPARE_FUNC comp);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif // MSL_SEARCH_H
|