bycopy()

Copies a specified number of bytes to another location in memory.

Syntax

void bycopy(char *s1, char *s2, mint n);
  1. s1 is a pointer to the first byte of the group of bytes that you want to copy.
  2. s2 is a pointer to the first byte of the destination group of bytes.
  3. n is the number of bytes to be copied.

Usage

If the location pointed to by s2 overlaps the location pointed to by s1, the function will not preserve the value of s1.

Important: Do not overwrite the memory areas adjacent to the destination area.