|
|
1.1 root 1:
2:
3: strncat() String Function strncat()
4:
5:
6:
7:
8: Append one string onto another
9:
10: #include <string.h>
11: cchhaarr *ssttrrnnccaatt(_s_t_r_i_n_g_1, _s_t_r_i_n_g_2, _n)
12: cchhaarr *_s_t_r_i_n_g_1, *_s_t_r_i_n_g_2; uunnssiiggnneedd _n;
13:
14: strncat copies up to n characters from string2 onto the end of
15: string1. It stops when n characters have been copied or it en-
16: counters a null character in string2, whichever occurs first, and
17: returns the modified string1.
18:
19: ***** Example *****
20:
21: For an example of this function, see the entry for ssttrrnnccppyy.
22:
23: ***** See Also *****
24:
25: strcat(), string functions, string.h
26:
27: ***** Notes *****
28:
29: string1 should point to enough space to hold itself and n charac-
30: ters of string2. If it does not, a portion of the program or
31: operating system may be overwritten.
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64: COHERENT Lexicon Page 1
65:
66:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.