sort: add qsort

This commit is contained in:
Michael Shaw 2024-02-07 22:59:20 -05:00
commit c296cb9cf1
2 changed files with 57 additions and 0 deletions

9
include/lib/sort.h Normal file
View file

@ -0,0 +1,9 @@
/* SPDX-License-Identifier: GPL-2.0-only */
#ifndef _SORT_H_
#define _SORT_H_
#include <stddef.h>
void qsort(void *base, size_t nmemb, size_t size, int (*compar)(const void *, const void *));
#endif /* _SORT_H_ */