From 8994c7b5cf56f540c71c763173a8927569ba94b3 Mon Sep 17 00:00:00 2001 From: Nathanael Sensfelder Date: Sun, 24 Jul 2016 22:42:09 +0200 Subject: Experimenting with K Order Markovian chains. I do not recommend using this branch ATM, it has not been tested. --- src/tool/sorted_list.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 src/tool/sorted_list.h (limited to 'src/tool/sorted_list.h') 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 + +#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 -- cgit v1.2.3-70-g09d2