From 198b4287f722a7dc7894b2ba5e96312ee6d81e35 Mon Sep 17 00:00:00 2001
From: Alexey <AlexeyAB@users.noreply.github.com>
Date: Sun, 08 Apr 2018 21:54:41 +0000
Subject: [PATCH] Update Readme.md
---
src/utils.c | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/src/utils.c b/src/utils.c
index d6bdbf6..a97d966 100644
--- a/src/utils.c
+++ b/src/utils.c
@@ -545,6 +545,15 @@
return max_i;
}
+int int_index(int *a, int val, int n)
+{
+ int i;
+ for (i = 0; i < n; ++i) {
+ if (a[i] == val) return i;
+ }
+ return -1;
+}
+
int rand_int(int min, int max)
{
if (max < min){
--
Gitblit v1.10.0