Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ () — Coherent 3.1.0

Media Vault

Software Library

Restoration Projects

Artifacts Sought


memcpy()                 String Function                 memcpy()




Copy one region of memory into another

#include <string.h>
char *memcpy(region1, region2, n);
char *region1; char *region2; unsigned int n;

memcpy copies n characters from region2 into region1.  Unlike the
routines  strcpy and  strncpy, memcpy copies  from one  region to
another.  Therefore,  it will not halt  automatically when it en-
counters a null character.

memcpy returns region1.

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

strcpy(), string functions, string.h

***** Notes *****

If region1  and region2  overlap, the  behavior of memcpy  is un-
defined.  region1 should  point to enough reserved memory to hold
n bytes of data; otherwise, code or data will be overwritten.


































COHERENT Lexicon                                           Page 1


Typewritten Software • bear@typewritten.org • Edmonds, WA 98026