X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=lib%2Fstr.c;fp=lib%2Fstr.c;h=016376e733bfe96b72cde7428eeb6a24f51c5800;hp=f90e8617746f6af9cdd7f2d4e3984a0606d7f883;hb=1c16e9623a9fb6a15bb284a6f7322b583ebc06a7;hpb=c6b9d35ed9361e4defab9762a7480d5126405ae9 diff --git a/lib/str.c b/lib/str.c index f90e861..016376e 100644 --- a/lib/str.c +++ b/lib/str.c @@ -17,44 +17,6 @@ #include "str.h" -char *str_cat (char *d, size_t l, const char *s) -{ - char *p = d; - - if (!l) - return d; - - l--; /* Space for the trailing '\0'. */ - - for (; *d && l; l--) - d++; - for (; *s && l; l--) - *d++ = *s++; - - *d = '\0'; - - return p; -} - -char *str_ncat (char *d, size_t l, const char *s, size_t sl) -{ - char *p = d; - - if (!l) - return d; - - l--; /* Space for the trailing '\0'. */ - - for (; *d && l; l--) - d++; - for (; *s && l && sl; l--, sl--) - *d++ = *s++; - - *d = '\0'; - - return p; -} - int str_casecmp (const char *a, const char *b) { return strcasecmp (NONULL (a), NONULL (b));