On Fri, 2010-04-30 16:08:15 +0200, Joakim Tjernlund 
<joakim.tjernl...@transmode.se> wrote:
> Is memcpy supposed to work when the src and dest are the same:
> memcpy(p, p, 100);

It may work, but you cannot rely on it. Use memmove() alternatively.

MfG, JBG

-- 
      Jan-Benedict Glaw      jbg...@lug-owl.de              +49-172-7608481
Signature of:              Alles sollte so einfach wie möglich gemacht sein.
the second  :                          Aber nicht einfacher.  (Einstein)

Attachment: signature.asc
Description: Digital signature

Reply via email to