diff options
| author | gary.li.wenchao.4 <[email protected]> | 2010-02-20 09:38:40 +0000 |
|---|---|---|
| committer | gary.li.wenchao.4 <[email protected]> | 2010-02-20 09:38:40 +0000 |
| commit | faffc442b9d717b3d3c1ac3d2f87fe2be7df45df (patch) | |
| tree | 13bae9b99615ad383ed55b5360f2b8980dd56190 | |
| parent | 26e8c8c1abda18187df6eb3c80efc8f8543f099a (diff) | |
fixed compiling error for GCC
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@428 bbd45198-f89e-11dd-88c7-29a3b14d5316
| -rw-r--r-- | libc/minilibc/string.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/libc/minilibc/string.c b/libc/minilibc/string.c index 092fbfb7ad..7edba9fc80 100644 --- a/libc/minilibc/string.c +++ b/libc/minilibc/string.c @@ -41,13 +41,6 @@ int strcmp (const char *s1, const char *s2) return (*s1 - *s2); } -int strcmp (const char *s1, const char *s2) -{ - while (*s1 && *s1 == *s2) - s1++, s2++; - return (*s1 - *s2); -} - char* strcat(register char* s,register const char* t) { char *dest = s; |
