blob: 1b1edf7ad64ed47803684bc184ce9ddbf05e90d8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
/* SPDX-License-Identifier: GPL-2.0-only */
#ifndef _COMMONLIB_SORT_H_
#define _COMMONLIB_SORT_H_
#include <stddef.h>
typedef enum {
NUM_ASCENDING,
NUM_DESCENDING
} sort_order_t;
void bubblesort(int *v, size_t num_entries, sort_order_t order);
#endif /* _COMMONLIB_SORT_H_ */
|