diff options
Diffstat (limited to 'firmware/libc/strcat.c')
-rw-r--r-- | firmware/libc/strcat.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/firmware/libc/strcat.c b/firmware/libc/strcat.c new file mode 100644 index 0000000000..221529519c --- /dev/null +++ b/firmware/libc/strcat.c | |||
@@ -0,0 +1,14 @@ | |||
1 | #include <string.h> | ||
2 | |||
3 | char *strcat(char *s1, | ||
4 | const char *s2) | ||
5 | { | ||
6 | char *s = s1; | ||
7 | |||
8 | while (*s1) | ||
9 | s1++; | ||
10 | |||
11 | while ((*s1++ = *s2++)) | ||
12 | ; | ||
13 | return s; | ||
14 | } | ||