>  void * memcpy(void *dst0, const void *src0, size_t len)
> {
>         char *dst = (char *)dst0;
>         const char *src = (const char *)src0;
>         void *ret = dst0;
>
>         for (; len > 0; len--)
>                 *dst++ = *src++;
>
>         return ret;
> }
>
> It works fine, and is 10 times smaller too.

I thought you were being a bit dramatic, but this does work fine and
it is much smaller!  I had 5 calls to memcpy in my code, and replacing
it with this simplified version shaved off 216 bytes from my program
size.

Andrew

Reply via email to