Bertrik Sikken | 9c0abbf | 2008-04-28 20:39:44 +0000 | [diff] [blame^] | 1 | #include <string.h> |
2 | |||||
Daniel Stenberg | 3dc01ee | 2002-06-19 08:29:02 +0000 | [diff] [blame] | 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 | } |