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>memmove() move a block of bytes</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 memmove()               Move a Block of Bytes

 #include   <string.h>
 #include   <mem.h>

 void       *memmove(destin,source,n);
 void       *destin;                     Destination
 const void *source;                     Source
 size_t     n;                           Number of bytes

    memmove() copies a block of 'n' bytes from 'source' to 'destin'. If
    part of 'destin' and 'source' overlap, so that part of 'source' will
    be overwritten, memmove() ensures that the original 'source' bytes
    are copied correctly.

       Returns:     A pointer to 'destin'.


   -------------------------------- Example ---------------------------------

    The following statements copy 100 characters from 'from_buffer' to
    'to_buffer'.

           #include <mem.h>

           char *buffr1, *buffr2;

           main()
           {
               memmove(to_buffer,from_buffer,100);
           }


See Also: memcpy() memset() memcmp()

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