changeset 346:691f3ad00943

Remove th_strlen() again. I suppose UTF8 aware functions would make sense at some point, though.
author Matti Hamalainen <ccr@tnsp.org>
date Wed, 24 Feb 2016 01:33:33 +0200
parents d5e5f6019584
children 75b5e4c37e3a
files th_string.c th_string.h
diffstat 2 files changed, 0 insertions(+), 15 deletions(-) [+]
line wrap: on
line diff
--- a/th_string.c	Wed Feb 24 01:29:18 2016 +0200
+++ b/th_string.c	Wed Feb 24 01:33:33 2016 +0200
@@ -11,19 +11,6 @@
 
 /* Implementation of strdup() with a NULL check
  */
-size_t th_strlen(const char *str)
-{
-    size_t len;
-    assert(str != NULL);
-
-    for (len = 0; *str; str++) len++;
-
-    return len;
-}
-
-
-/* Implementation of strdup() with a NULL check
- */
 char *th_strdup(const char *src)
 {
     char *res;
--- a/th_string.h	Wed Feb 24 01:29:18 2016 +0200
+++ b/th_string.h	Wed Feb 24 01:33:33 2016 +0200
@@ -80,8 +80,6 @@
 
 /* Normal NUL-terminated string functions
  */
-size_t   th_strlen(const char *str);
-
 char    *th_strdup(const char *src);
 char    *th_strndup(const char *src, const size_t n);
 char    *th_strdup_trim(const char *, const int flags);