diff options
author | Patrick Simianer <p@simianer.de> | 2014-06-15 03:50:43 +0200 |
---|---|---|
committer | Patrick Simianer <p@simianer.de> | 2014-06-15 03:50:43 +0200 |
commit | 6ed9a9699997a2853ec1c9e91747c251e5cfc97b (patch) | |
tree | 56c96f18442fb06aeeb45cadc56355353a63ee99 /ccc/stringutil.c | |
parent | 258e1b92ebbfdebefabc120969ab87c3d8b75c3d (diff) |
damn
Diffstat (limited to 'ccc/stringutil.c')
-rw-r--r-- | ccc/stringutil.c | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/ccc/stringutil.c b/ccc/stringutil.c deleted file mode 100644 index aab4f03..0000000 --- a/ccc/stringutil.c +++ /dev/null @@ -1,22 +0,0 @@ -#include "stringutil.h" - - -char* -strend(char* s) -{ - if (strlen(s) == 0) return '\0'; - while(*s != '\0') - ++s; - return --s; -} - -bool -endswith(char* s, char* suff) -{ - if (strlen(s) < strlen(suff)) return false; - char* a = strend(s)-(strlen(suff)-1); - if (!a) return false; - if (!strcmp(a, suff)) return true; - return false; -} - |