Added some array utils.

This commit is contained in:
YourWishes committed 2021-06-13 18:16:35 -07:00
1 parent 928c3c838e
commit 77389ffd15
16 files changed
+242 -45

No files matched your search

+18
View File
@@ -0,0 +1,18 @@
/**
* Copyright (c) 2021 Dominic Masters
*
* This software is released under the MIT License.
* https://opensource.org/licenses/MIT
*/
#pragma once
#include "../libs.h"
/**
* Definition of a callback that is used to sort an array.
*
* @param left The left element in the array.
* @param right The right element in the array.
* @return -1 for Left priority, 1 for Right and 0 for Equal.
*/
typedef int32_t *arraysort_t(void const*, void const*);