commit | 3dc01eebb4a8ccb97bc1c8b80771e6c3aad7715b | [log] [tgz] |
---|---|---|
author | Daniel Stenberg <daniel@haxx.se> | Wed Jun 19 08:29:02 2002 +0000 |
committer | Daniel Stenberg <daniel@haxx.se> | Wed Jun 19 08:29:02 2002 +0000 |
tree | 3da4762951d53b52ad44862afe7feff9afe6e8f3 | |
parent | 60ed5ee4a120a92b34bdbd8c623303d2cce5a8d4 [diff] [blame] |
strcat() git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1069 a1c6a512-1295-4272-9138-f99709370657
diff --git a/firmware/common/strcat.c b/firmware/common/strcat.c new file mode 100644 index 0000000..e3366d7 --- /dev/null +++ b/firmware/common/strcat.c
@@ -0,0 +1,12 @@ +char *strcat(char *s1, + const char *s2) +{ + char *s = s1; + + while (*s1) + s1++; + + while ((*s1++ = *s2++)) + ; + return s; +}