(C) 1998 AROS - The Amiga Research OS


NAME
#include <string.h>

char * strncat ()

SYNOPSIS
char * dest
const char * src
size_t n

FUNCTION
Concatenates two strings. If src is longer than n characters, then only the first n characters are copied.

INPUTS
dest
src is appended to this string. Make sure that there is enough room for src.
src
This string is appended to dest
n
No more than this number of characters of src are copied.

RESULT
dest.

EXAMPLE
char buffer[64];

strcpy (buffer, "Hello ");
strncat (buffer, "World.!!", 6);

// Buffer now contains "Hello World."
SEE ALSO

NOTES
The routine makes no checks if dest is large enough. The size of dest must be at least strlen(dest)+n+1.

BUGS

INTERNALS

HISTORY
03.01.1999 nlorentz
Bugfix: destination string was not null-terminated if strlen(src) < n
20.10.1998 hkiel
Amiga Research OS
11.12.1996 aros
New functions