C Run-Time Library Reference
memcpy
copy characters from one object to another
Synopsis
#include <string.h>
void *memcpy(void *s1, const void *s2, size_t n);
Description
The
function copies
memcpy
into the object pointed to by
the two objects overlap.
The
function returns the address of
memcpy
Error Conditions
The
function does not return an error condition.
memcpy
Example
#include <string.h>
char *a = "SRC";
char *b = "DEST";
memcpy (b, a, 3);
See Also
memmove, memcpy_from_shared, memcpy_to_shared, strcpy,
3-96
characters from the object pointed to by
n
. The behavior of
s1
/* *b="SRCT" */
VisualDSP++ 3.5 C/C++ Compiler and Library Manual
is undefined if
memcpy
.
s1
for ADSP-219x DSPs
s2
strncpy
Need help?
Do you have a question about the VISUALDSP++ 3.5 and is the answer not in the manual?
Questions and answers