e62 strncat[concatenate strings]

Contents|Index|Previous|Next

strncat
[concatenate strings]

SYNOPSIS
#include <string.h>
char *strncat(char *dst, const char *src, size_t length);

DESCRIPTION
strncat appends not more than length characters from the string pointed to by src (including the terminating null character) to the end of the string pointed to by dst. The initial character of src overwrites the null character at the end of dst. A terminating null character is always appended to the result.

WARNING:
Note that a null is always appended, so that if the copy is limited by the
length argument, the number of characters appended to dst is
n +1.

RETURNS
This function returns the initial value of
dst.

COMPLIANCE
strncat is ANSI C.

strncat requires no supporting OS subroutines.

0