xref: /haiku/src/system/libroot/posix/string/strcat.c (revision 24159a0c7d6d6dcba9f2a0c1a7c08d2c8167f21b)
1 /*
2 ** Copyright 2001, Travis Geiselbrecht. All rights reserved.
3 ** Distributed under the terms of the NewOS License.
4 */
5 
6 #include <sys/types.h>
7 #include <string.h>
8 
9 
10 char *
11 strcat(char *dest,  char const*src)
12 {
13 	char *tmp = dest;
14 
15 	while(*dest)
16 		dest++;
17 	while((*dest++ = *src++) != '\0')
18 		;
19 
20 	return tmp;
21 }
22 
23