add a missing section header table index conversion
[tangerine.git] / compiler / clib / strcat.c
blobac461d45c4ec42d9de78893a5b627e9ea5b81a69
1 /*
2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
3 $Id$
5 ANSI C 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 */