File:  [MW Coherent from dump] / coherent / f / usr / man / KERNEL / memcpy
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Wed May 29 04:56:40 2019 UTC (7 years, 2 months ago) by root
Branches: MarkWilliams, MAIN
CVS tags: relic, HEAD
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.

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.