memcpy_s

memcpy_s - Copy source buffer to destination buffer

Purpose: memcpy_s() copies a source memory buffer to a destination memory buffer. This routine does NOT recognize overlapping buffers, and thus can lead to propagation.

For cases where propagation must be avoided, memmove_s() must be used.

Entry: void *dst = pointer to destination buffer size_t sizeInBytes = size in bytes of the destination buffer const void *src = pointer to source buffer size_t count = number of bytes to copy

Exit: Returns 0 if everything is ok, else return the error code.

Exceptions: Input parameters are validated. Refer to the validation section of the function. On error, the error code is returned and the destination buffer is zeroed.

version(Windows)
int
memcpy_s
(
ubyte* dst
,,
const ubyte* src
,
size_t count
)

Meta