The function (apparently it is not a method) copies
slength
int
values from the source memory area (pointed by
s
) to the destination memory area ( pointed by
d
).
The function (implicitely) assumes that:
s
is a valid pointer to a memory area of size equal to (or greater than) slength
.- As well,
d
is a valid pointer to a memory area of size equal to (or greater than) slength
. - The memory areas pointed by
s
and d
don't overlap.
If one of these requirements does not hold then the caller is in big troubles.
Note that
slength
name is a bit misleading.