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 *memcpy( void *dst,
                  const void *src,
                  size_t length );
    void __far *_fmemcpy( void __far *dst,
                          const void __far *src,
                          size_t length );

Description:
    The memcpy function copies length characters from the buffer pointed to
    by src into the buffer pointed to by dst.  Copying of overlapping
    objects is not guaranteed to work properly.  See the  memmove function
    if you wish to copy objects that overlap.

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

Returns:
    The original value of dst is returned.

Example:
    #include <stdio.h>
    #include <string.h>

    void main()
      {
        auto char buffer[80];

        memcpy( buffer, "Hello", 5 );
        buffer[5] = '\0';
        printf( "%s\n", buffer );
      }

Classification:
    memcpy is ANSI, _fmemcpy is not ANSI

Systems:
     memcpy - All, Netware

    _fmemcpy - All

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

See Also:

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