diff options
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; -} -  | 
