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

Functions

void * memcpy (void *destination, const void *source, size_t size)
 Copy block of memory. More...
 

Function Documentation

◆ memcpy()

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

Copy block of memory.

Copies the values of num bytes from the location pointed to by source directly to the memory block pointed to by destination.

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.