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/C++ v10.0 : C library - <b>synopsis:</b> 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 and _fmemcpy functions copy 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.

See Also:
    memchr, _fmemchr, memcmp, _fmemcmp, memmove, _fmemmove, memset, _fmemset

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

    _fmemcpy - All

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