Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Watcom C Library Reference - <u>synopsis:</u> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
Synopsis:
    #include <string.h>
    void *memmove( void *dst,
                   const void *src,
                   size_t length );
    void __far *_fmemmove( void __far *dst,
                           const void __far *src,
                           size_t length );

Description:
    The memmove function copies length characters from the buffer pointed to
    by src to the buffer pointed to by dst.  Copying of overlapping objects
    will take place properly.  See the  memcpy function to copy objects that
    do not overlap.

    The _fmemmove function is a data model independent form of the memmove
    function.  It accepts far pointer arguments and returns a far pointer.
     It is most useful in mixed memory model applications.

Returns:
    The memmove function returns dst.

Example:
    #include <string.h>

    void main()
      {
        char buffer[80];

        memmove( buffer+1, buffer, 79 );
        buffer[0] = '*';
      }

Classification:
    memmove is ANSI, _fmemmove is not ANSI

Systems:
     memmove - All, Netware

    _fmemmove - All

See Also:
    memchr, memcmp, memcpy, memicmp, memset

See Also:

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