From 01c591fb84dff8c481dc5dc59420300880e37fcc Mon Sep 17 00:00:00 2001
From: Viliam Mateicka <viliam.mateicka@gmail.com>
Date: Tue, 9 Dec 2008 17:36:10 +0100
Subject: utils: moving stringFoundInStringArray() from decoder into utils

---
 src/utils.c | 11 +++++++++++
 1 file changed, 11 insertions(+)

(limited to 'src/utils.c')

diff --git a/src/utils.c b/src/utils.c
index 9b75748da..1b12cd810 100644
--- a/src/utils.c
+++ b/src/utils.c
@@ -235,3 +235,14 @@ void xpthread_cond_destroy(pthread_cond_t *cond)
 	if ((err = pthread_cond_destroy(cond)))
 		FATAL("failed to destroy cond: %s\n", strerror(err));
 }
+
+int stringFoundInStringArray(const char *const*array, const char *suffix)
+{
+	while (array && *array) {
+		if (strcasecmp(*array, suffix) == 0)
+			return 1;
+		array++;
+	}
+
+	return 0;
+}
-- 
cgit v1.2.3