source:
trunk/sys/dietlibc/strcat.c
@
240
Last change on this file since 240 was 1, checked in by , 8 years ago | |
---|---|
File size: 360 bytes |
Rev | Line | |
---|---|---|
[1] | 1 | #include "dietfeatures.h" |
2 | #include <string.h> | |
3 | ||
4 | char* strcat(register char* s,register const char* t) | |
5 | { | |
6 | char *dest=s; | |
7 | s+=strlen(s); | |
8 | for (;;) { | |
9 | if (!(*s = *t)) break; ++s; ++t; | |
10 | #ifndef WANT_SMALL_STRING_ROUTINES | |
11 | if (!(*s = *t)) break; ++s; ++t; | |
12 | if (!(*s = *t)) break; ++s; ++t; | |
13 | if (!(*s = *t)) break; ++s; ++t; | |
14 | #endif | |
15 | } | |
16 | return dest; | |
17 | } | |
18 |
Note: See TracBrowser
for help on using the repository browser.