From f2f5a942abfb375a3f2d031005d5f067d1257876 Mon Sep 17 00:00:00 2001 From: Guido Günther Date: Mon, 17 May 2010 16:58:14 +0200 Subject: Drop duplicate memmove/strcat functions those were already added by commit 0b1d5fa90eabd98e3d69734ce1cdcef949d3fb30. --- arclib/string.c | 33 --------------------------------- 1 file changed, 33 deletions(-) (limited to 'arclib/string.c') diff --git a/arclib/string.c b/arclib/string.c index 66ed3c1..1c424c0 100644 --- a/arclib/string.c +++ b/arclib/string.c @@ -149,36 +149,3 @@ void __bzero(char *p, int len) { memset(p, 0, len); } - -char *strcat(char *dest, const char *src) -{ - char *tmp = dest; - - while (*dest) - dest++; - while ((*dest++ = *src++) != '\0') - ; - return tmp; -} - -void *memmove(void *dest, const void *src, size_t count) -{ - char *tmp; - const char *s; - - if (dest <= src) { - tmp = dest; - s = src; - while (count--) - *tmp++ = *s++; - } else { - tmp = dest; - tmp += count; - s = src; - s += count; - while (count--) - *--tmp = *--s; - } - return dest; -} - -- cgit v1.2.3