delint for clang
[AROS.git] / compiler / stdc / strcat.c
blobdc6312d2b63b67cc6635c819d59d23004717b937
1 /*
2 Copyright © 1995-2012, The AROS Development Team. All rights reserved.
3 $Id$
5 C99 function strcat().
6 */
8 /*****************************************************************************
10 NAME */
11 #include <string.h>
13 char * strcat (
15 /* SYNOPSIS */
16 char * dest,
17 const char * src)
19 /* FUNCTION
20 Concatenates two strings.
22 INPUTS
23 dest - src is appended to this string. Make sure that there
24 is enough room for src.
25 src - This string is appended to dest
27 RESULT
28 dest.
30 NOTES
31 The routine makes no checks if dest is large enough.
33 EXAMPLE
34 char buffer[64];
36 strcpy (buffer, "Hello ");
37 strcat (buffer, "World.");
39 // Buffer now contains "Hello World."
41 BUGS
43 SEE ALSO
45 INTERNALS
47 ******************************************************************************/
49 char * d = dest;
51 while (*dest)
52 dest ++;
54 while ((*dest ++ = *src ++));
56 return d;
57 } /* strcat */