Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Borland C++ 2.x ( with Turbo C ) - <b>movmem() move a block of bytes</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 movmem()                Move a Block of Bytes

 #include   <mem.h>

 void       movmem(source,destin,len);
 void       *source;                     Source
 void       *destin;                     Destination
 unsigned   len;                         Number of bytes

    movmem() copies a block of 'len' bytes from 'source' to 'destin'. If
    the source and destination blocks overlap, movmem() ensures that
    overlapping bytes are copied correctly.

       Returns:     Nothing

   -------------------------------- Example ---------------------------------
    The following statements crunch an array to remove the third item.

           #include <mem.h>     /* for movmem */

           int array[1000];

           main()
           {
               movmem(&array[2], &array[3], sizeof(array) - 3*sizeof(int));
           }


See Also: memcpy() memccpy() memchr() memmove()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson