

strncat()                String Function                strncat()




Append one string onto another

#include <string.h>
cchhaarr *ssttrrnnccaatt(_s_t_r_i_n_g_1, _s_t_r_i_n_g_2, _n)
cchhaarr *_s_t_r_i_n_g_1, *_s_t_r_i_n_g_2; uunnssiiggnneedd _n;

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

***** Example *****

For an example of this function, see the entry for ssttrrnnccppyy.

***** See Also *****

strcat(), string functions, string.h

***** Notes *****

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
































COHERENT Lexicon                                           Page 1


