2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
5 ANSI C function strncat().
8 /*****************************************************************************
21 Concatenates two strings. If src is longer than n characters, then
22 only the first n characters are copied.
25 dest - src is appended to this string. Make sure that there
26 is enough room for src.
27 src - This string is appended to dest
28 n - No more than this number of characters of src are copied.
34 The routine makes no checks if dest is large enough. The size of
35 dest must be at least strlen(dest)+n+1.
40 strcpy (buffer, "Hello ");
41 strncat (buffer, "World.!!", 6);
43 // Buffer now contains "Hello World."
51 ******************************************************************************/
58 while (n
&& (*dest
= *src
))
63 *dest
= 0; /* null-terminate conctenated string */