> extern inline void *memcpy(void *dst, const void *src, size_t num)
> {
> register void *ds = dst;
> while (num--)
> *((char *) dst)++ = *((char *) src)++;
> return ds;
> }
>
> This will run faster but might increase the size somewhat.
Take care with this. I tried various scenarii and found that the toolbox
call "MemMove" is faster than the code above in most cases, except when you
are moving very small amounts of memory (< 16 bytes).
--
Florent Pillet, Code Segment [EMAIL PROTECTED]
BrainForest, outlines and action items for Palm OS handhelds
-> Aportis Technologies Corp. http://www.aportis.com/
PowerGlot, the premier localization tool for Mac OS software
-> PowerGlot Software http://www.powerglot.com/
Palm Buddy, MacOS active link companion for PalmOS handhelds
-> ...and other tools... http://perso.wanadoo.fr/fpillet/