MicrOS
memmove.c File Reference
#include "../string.h"

Functions

void * memmove (void *destination, const void *source, size_t size)
 Move block of memory. More...
 

Function Documentation

◆ memmove()

void* memmove ( void *  destination,
const void *  source,
size_t  size 
)

Move block of memory.

Copies the values of num bytes from the location pointed by source to the memory block pointed by destination. Copying takes place as if an intermediate buffer were used, allowing the destination and source to overlap.

Parameters
destinationPointer to the destination array where the content is to be copied, type-casted to a pointer of type void*.
sourcePointer to the source of data to be copied, type-casted to a pointer of type const void*.
numNumber of bytes to copy.
Returns
Destination is returned.