1.1 --- a/suffix_fnc.c Tue Oct 02 10:49:25 2012 +0200 1.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 1.3 @@ -1,25 +0,0 @@ 1.4 -/* 1.5 - * suffix_fnc.c 1.6 - * 1.7 - * Created on: 15.09.2011 1.8 - * Author: Mike 1.9 - */ 1.10 - 1.11 -#include "suffix_fnc.h" 1.12 - 1.13 -bool testSuffix(char* filename, string_list_t* list) { 1.14 - bool ret = false; 1.15 - int tokenlen, fnamelen = strlen(filename); 1.16 - for (int t = 0 ; t < list->count ; t++) { 1.17 - tokenlen = strlen(list->items[t]); 1.18 - if (fnamelen >= tokenlen && tokenlen > 0) { 1.19 - if (strncmp(filename+fnamelen-tokenlen, 1.20 - list->items[t], tokenlen) == 0) { 1.21 - ret = true; 1.22 - break; 1.23 - } 1.24 - } 1.25 - } 1.26 - return ret; 1.27 -} 1.28 -