|
|
1.1 root 1:
2:
3: memccpy() String Function memccpy()
4:
5:
6:
7:
8: Copy one region of memory into another up to a requested
9: character
10:
11: #iinncclluuddee <ssttrriinngg.hh>
12: cchhaarr *mmeemmccccppyy(_d_e_s_t, _s_r_c, _c, _n)
13: cchhaarr *_d_e_s_t, *_s_r_c; uunnssiiggnneedd iinntt _c, _n;
14:
15: mmeemmccccppyy copies characters from _s_r_c to _d_e_s_t, stopping when either
16: it finds the first occurrence of character _c or it has copied _n
17: characters. Unlike the routines ssttrrccppyy and ssttrrnnccppyy, mmeemmccppyy
18: copies from one region to another. Therefore, it will not halt
19: automatically when it encounters a null character.
20:
21: mmeemmccccppyy returns a pointer to the first location after character _c
22: in _d_e_s_t, or NULL if character _c was not found.
23:
24: ***** See Also *****
25:
26: mmeemmccppyy(), ssttrrccppyy(), ssttrrnnccppyy(), ssttrriinngg ffuunnccttiioonnss, ssttrriinngg.hh
27:
28: ***** Notes *****
29:
30: mmeemmccccppyy is not part of the ANSI C Standard. Use of this library
31: routine may restrict portability.
32:
33: If _d_e_s_t and _s_r_c overlap, the behavior of mmeemmccccppyy is undefined.
34: _d_e_s_t should point to enough reserved memory to hold _n bytes of
35: data; otherwise, data corruption may result.
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.