[Coco] Os9 C cross compiler. Progress!

Tormod Volden lists.tormod at gmail.com
Fri Nov 22 04:35:40 EST 2019


On Fri, Nov 22, 2019 at 7:11 AM Walter Zambotti wrote:
>
> So this will only work if the strcpy function is guaranteed to copy from
> left to right.

It is not...

>
> While this may be the case for strcpy on OS9 it appears not to be the case
> for Linux on Intel.

It is likely copying 32 bits at the time when it can.

If source and destination is overlapping, memmove() can be used.

Regards,
Tormod


More information about the Coco mailing list