Borland C++ reference

memmove

raw OCR

Copies a block of n bytes.

Defined in header <mem.h>

Syntax

#include <mem.h>
void *memmove(void    *dest, const void *src,size_tn);

Portability

DOSUNIXWindowsANSI CC++ only
■■■■

Remarks

memmoveis available on UNIX System V systems.
memmove and destination blocks overlap, bytes in the overlapping locations are copied correctly.copies a block of n bytes from src to dest. Even when the source

Return value

memmovereturns dest.

See also

Example

#include <string.h>
#include <stdio.h>
int main(void)
{
   char *dest = "abcdefghijkliTinopqrstuvwxyz0123456789";
   char *src = 'i******************************™.
   printf("destination prior  to memmove: %s\n", dest);
   memmove (dest, src, 26);
   printf("destination after memmove:     %s\n", dest);
   return 0;
}

Differences from modern implementations

Nothing recorded yet.

Modern references

These are search links, not yet checked by hand.