00001 00007 /* Embedded XINU, Copyright (C) 2007. All rights reserved. */ 00008 00009 /* 00010 * Concatenate s2 on the end of s1. S1's space must be large enough. 00011 * @param s1 first string 00012 * @param s2 second string 00013 * @return s1. 00014 */ 00015 char *strcat(char *s1, char *s2) 00016 { 00017 char *os1; 00018 00019 os1 = s1; 00020 while (*s1++) 00021 { ; } 00022 --s1; 00023 while (((*s1++) = (*s2++))) 00024 { ; } 00025 return os1; 00026 }