30 Apr
2010
30 Apr
'10
2:44 p.m.
Martin Mares <mj@ucw.cz> wrote on 2010/04/30 16:39:00:
Hello!
Pehaps this it is always safe to use memcpy in this case, but the man page doesn't.
Neither it is allowed by the C standard.
It is also a waste of cycles as the whole op is a NOP.
Sure -- that's why we have split the copying and in-place conversion.
I am just suggesting to use a bit of defensive programming to avoid potential future bugs but if you don't want too, OK by me. Jocke