> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> I believe MemMove is just poorly named. It behaves the same 
> way you'd expect a function called MemCopy to...
> ie. it leaves the source intact.

Actually it's well-named because it is equivalent to the memmove function of
the standard C library, which has been around since some time in the last
century.  The standard memcpy function also copies bytes but is not required
to work correctly if the source and destination blocks overlap; memmove is
the same except it _is_ guaranteed to handle overlapping blocks.  memmove
being the more general of the two, it's what got implemented in the OS.

Or I should say MemMove is _almost_ equivalent to memmove but with the
return value changed.  [Opinion omitted.  Whoever "tweaked" several standard
C library functions when implementing them in Palm OS... may be reading
this.]

-slj-


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to