|
NAMEmemcpy —
copy byte string
LIBRARYStandard C Library (libc, -lc)SYNOPSIS#include <string.h>
void *
void *
DESCRIPTIONThememcpy () and mempcpy ()
functions copy len bytes from string
src to string dst. If
src and dst overlap, the results
are not defined.
RETURN VALUESThememcpy () function returns the original value of
dst.
The SEE ALSObcopy(3), memccpy(3), memmove(3), strcpy(3), wmemcpy(3) wmempcpy(3)STANDARDSThememcpy () function conforms to
ISO/IEC 9899:1990 (“ISO C90”).
BUGSIn this implementationmemcpy () and
mempcpy () are implemented using
bcopy(3),
and therefore the strings may overlap. On other systems, copying overlapping
strings may produce surprises. Programs intended to be portable should use
memmove(3)
when src and dst may overlap.
Visit the GSP FreeBSD Man Page Interface. |