LabWindows/CVI

Content Type
Programming Language
Current manual
Table of Contents

memmove

memmove

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

Purpose

Copies a specified number of bytes from a source buffer to a target buffer. Copying takes place as if the bytes to be copied are first copied into a temporary array, which allows this function to copy bytes even when the source and target buffers overlap.

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 memmove function.

Was this information helpful?

Previous

memcpy

Next

memcmp

Previous

memcpy

Next

memcmp