From 50a6ca39ad4ed01922aa4f755f0ca579788226cf Mon Sep 17 00:00:00 2001 From: Thomas Martitz Date: Thu, 6 May 2010 21:04:40 +0000 Subject: Move c/h files implementing/defining standard library stuff into a new libc directory, also standard'ify some parts of the code base (almost entirely #include fixes). This is to a) to cleanup firmware/common and firmware/include a bit, but also b) for Rockbox as an application which should use the host system's c library and headers, separating makes it easy to exclude our files from the build. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25850 a1c6a512-1295-4272-9138-f99709370657 --- firmware/libc/strcat.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 firmware/libc/strcat.c (limited to 'firmware/libc/strcat.c') 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 @@ +#include + +char *strcat(char *s1, + const char *s2) +{ + char *s = s1; + + while (*s1) + s1++; + + while ((*s1++ = *s2++)) + ; + return s; +} -- cgit v1.2.3