COHERENT manpages

This page displays the COHERENT manpage for strncat() [Append one string onto another].

List of available manpages
Index


strncat() -- String Function (libc)

Append one string onto another
#include <string.h>
char *strncat(string1, string2, n)
char *string1, *string2; unsigned n;

strncat() copies up  to n characters from string2 onto  the end of string1.
It  stops when  n  characters have  been  copied or  it  encounters a  null
character  in string2,  whichever occurs  first,  and returns  the modified
string1.

Example

For an example of this function, see the entry for strncpy.

See Also

libc,
strcat(),
string.h
ANSI Standard, §7.11.3.2
POSIX Standard, §8.1

Notes

string1 should  point to enough  space to hold  itself and n  characters of
string2. If it  does not, a portion of the  program or operating system may
be overwritten.