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 bcopy( const void *src, void *dst, size_t n );

Description:
    The bcopy function copies the byte string pointed to by src (including
    any null characters) into the array pointed to by dst.  The number of
    bytes to copy is specified by n.  Copying of overlapping objects is
    guaranteed to work properly.

    Note that this function is similar to the ANSI  memmove function but the
    order of arguments is different (new code should use the ANSI function).

Returns:
    The bcopy function has no return value.

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

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

        bcopy( "Hello ", buffer,     6 );
        bcopy( "world",  &buffer[6], 6 );
        printf( "%s\n", buffer );
      }

    produces the following:

    Hello world

Classification:
    WATCOM

Systems:
    All, Netware

See Also:
    bcmp, bzero, memmove, strcpy

See Also: bcmp bzero

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