# CopyBytes

void CopyBytes (char targetBuffer[], int targetIndex, char *sourceBuffer, int sourceIndex, int numberOfBytes);

## Purpose

Copies the numberOfBytes bytes that start at position sourceIndex of sourceBuffer to position targetIndex of targetBuffer.

## Parameters

Input
Name | Type | Description
targetIndex | integer | Zero–based index specifying the location within targetBuffer at which to begin copying bytes.
sourceBuffer | string | Buffer from which to copy bytes.
sourceIndex | integer | Zero–based index specifying the location of the bytes to be copied within the source buffer.
numberOfBytes | integer | Number of bytes to copy.
Output
Name | Type | Description
targetBuffer | string | Buffer into which to copy bytes.
| Note You can use CopyBytes even when sourceBuffer and targetBuffer overlap.

## Return Value

None.