|
|
coherent
mmeemmccppyy() -- String Function #iinncclluuddee <ssttrriinngg.hh> cchhaarr * mmeemmccppyy(_r_e_g_i_o_n_1, _r_e_g_i_o_n_2, _n) vvaaddddrr_tt _r_e_g_i_o_n_1; vvaaddddrr_tt _r_e_g_i_o_n_2; uunnssiiggnneedd iinntt _n; mmeemmccppyy() copies _n characters from _r_e_g_i_o_n_2 into _r_e_g_i_o_n_1. Unlike the routines ssttrrccppyy() and ssttrrnnccppyy(), mmeemmccppyy() copies from one region to another. Therefore, it will not halt automatically when it encounters NUL. mmeemmccppyy() returns _r_e_g_i_o_n_1. _S_e_e _A_l_s_o ssttrrccppyy(), ssttrriinngg ffuunnccttiioonnss, ssttrriinngg.hh _N_o_t_e_s If _r_e_g_i_o_n_1 and _r_e_g_i_o_n_2 overlap, the behavior of mmeemmccppyy() is undefined. _r_e_g_i_o_n_1 should point to enough reserved memory to hold _n bytes of data; otherwise, code or data will be overwritten.
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.