Borland C++ reference

movmem

raw OCR

Moves a block of length bytes.

Defined in header <mem.h>

Syntax

#include <mem.h>
void movmem(void    *src, void *dest,unsigned length);

Portability

DOSUNIXWindowsANSI CC++ only
■■

Remarks

movmemmoves a block of length bytes from src to dest. Even if the source

and destination blocks overlap, the move direction is chosen so that the data is always moved correctly.

Return value

None.

See also

Example

#include <mem.h>
*include <alloc.h>
#include <stdio.h>
#include <string.h>

int main(void)
{
   char *source =  "Borland International";
   char *destination;
   int length;
   length = strlen(source) ;
   destination = malloc(length  + 1);
   movinem(source,destination,length);
   printf("%s\n"(destination) ;
   return 0;

Differences from modern implementations

Nothing recorded yet.

Modern references

These are search links, not yet checked by hand.