If either
dest
orsrc
is an invalid or null pointer, the behavior is undefined, even ifcount
is zero
Same is stated for memset
and memmove
.
My question is: where is it stated in the standard? I need to justify this as an UB to my client, but a link to a cppref article won' t do, I need the reference in the standard.
The C++ standard refers the C standard, and these functions are defined in the C standard.