LabWindows/CVI

Content Type
Programming Language
Current manual
Table of Contents

memcpy

memcpy

void *memcpy (void *targetBuffer, const void *sourceBuffer, size_t numberOfBytes);

Purpose

Copies a specified number of bytes from a source buffer to a target buffer. If copying takes place between objects that overlap, the behavior is undefined. To copy between a source and target that overlap, use memmove instead.

Parameters

Input
Name Type Description
sourceBuffer const void * Contains a pointer to the source buffer from which the specified bytes are copied. The contents of this parameter remain unchanged.
numberOfBytes size_t Specifies the number of bytes from the source buffer that are copied to the target buffer.
Output
Name Type Description
targetBuffer void * Contains a pointer to the target buffer to which the specified bytes are copied.

Return Value

Name Type Description
returnedTargetBuffer void * Contains a pointer to the target buffer.

Additional Information

Library: ANSI C Library

Include file: ansi_c.h

LabWindows/CVI compatibility: LabWindows/CVI 3.0 and later

Example

Refer to apps\daqmthread\daqMT.cws for an example of using the memcpy function.

Was this information helpful?