summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathanael Sensfelder <SpamShield0@MultiAgentSystems.org>2016-07-24 22:42:09 +0200
committerNathanael Sensfelder <SpamShield0@MultiAgentSystems.org>2016-07-24 22:42:09 +0200
commit8994c7b5cf56f540c71c763173a8927569ba94b3 (patch)
tree5b7822bd827593f612c1e103df92001781ac72c6 /src/tool/sorted_list.h
parentf74d57fee040218af039f8157cf645d0902ad300 (diff)
Experimenting with K Order Markovian chains.
I do not recommend using this branch ATM, it has not been tested.
Diffstat (limited to 'src/tool/sorted_list.h')
-rw-r--r--src/tool/sorted_list.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/tool/sorted_list.h b/src/tool/sorted_list.h
new file mode 100644
index 0000000..72bd893
--- /dev/null
+++ b/src/tool/sorted_list.h
@@ -0,0 +1,19 @@
+#ifndef _ZoO_TOOL_SORTED_LIST_H_
+#define _ZoO_TOOL_SORTED_LIST_H_
+
+#include <stdlib.h>
+
+#include "../pervasive.h"
+
+int ZoO_sorted_list_index_of
+(
+ ZoO_index const list_length,
+ const void * const sorted_list,
+ const void * const elem,
+ size_t const type_size,
+ int (*compare) (const void *, const void *, const void *),
+ const void * const other,
+ ZoO_index result [const restrict static 1]
+);
+
+#endif