delorie.com/djgpp/doc/libc/libc_568.html   search  
libc.a reference

[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

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/ISO C C89; C99
POSIX 1003.2-1992; 1003.1-2001

Example

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


  webmaster     delorie software   privacy  
  Copyright © 2004     Updated Apr 2004