Name

bcopy - copies byte sequence

Library

libc.lib

Synopsis

  #include <strings.h>
  void bcopy (const void *src, void *dst, size_t len);

Detailed description

The bcopy function copies len bytes from string src to string dst. The two strings may overlap. If len is zero, no bytes are copied.

Examples

#include <string.h>
#include <stdio.h>
int main()
{
    char dst[50];
    bcopy("Hello World",dst,12);        
    printf("Destination string after bcopy = %s\n",dst);
    return 0;
}

         

Output

Destination string after bcopy = Hello World

         

See also

memccpy, memcpy, memmove, strcpy


Feedback

For additional information or queries on this page send feedback

© 2005-2007 Nokia

Top