File:  [MW Coherent from dump] / coherent / a / usr / man / ALL / memmove
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Wed May 29 04:56:34 2019 UTC (7 years ago) by root
Branches: MarkWilliams, MAIN
CVS tags: relic, HEAD
coherent



memmove()                String Function                memmove()




Copy region of memory into area it overlaps

#include <string.h>
cchhaarr *mmeemmmmoovvee(_r_e_g_i_o_n_1, _r_e_g_i_o_n_2, _c_o_u_n_t);
cchhaarr *_r_e_g_i_o_n_1, cchhaarr *_r_e_g_i_o_n_2, uunnssiiggnneedd iinntt _c_o_u_n_t;

memmove  copies  count  characters  from  region2  into  region1.
Unlike memcpy, memmove  correctly copies the region pointed to by
region2 into  that pointed by  region1 even if  they overlap.  To
``correctly copy'' means that the overlap does not propagate, not
that  the  moved data  stay  intact.   Unlike the  string-copying
routines strcpy and strncpy, memmove continues to copy even if it
encounters a null character.

memmove returns region1.

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

string functions, string.h

***** Notes *****

region1 should  point to enough reserved memory  to hold the con-
tents of region2.  Otherwise, code or data will be overwritten.
































COHERENT Lexicon                                           Page 1



unix.superglobalmegacorp.com

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