Go to the first, previous, next, last section, table of contents.


memmove

Syntax

#include <string.h>

void *memmove(void *dest, const void *source, int num);

Description

This function copies num bytes from source to dest. The copy is done in such a way that if the two regions overlap, the source is always read before that byte is changed by writing to the destination.

Return Value

dest

Portability

ANSI, POSIX

Example

memmove(buf+1, buf, 99);
memmove(buf, buf+1, 99);


Go to the first, previous, next, last section, table of contents.