Re: memcpy 
On Jun 20, 2007, at 1:05 PM, Mark J. Reed wrote:

> Incrementing a var is much less likely to have unpredictable effects
> due to modifying the wrong memory.  Sure, x might be a pointer, and
> things might gang agley there, but pointers getting set to the wrong
> type of pointee is a pretty common problem, and one that I'm happy to
> have some runtime support in locating.

My point is that

   *d = *s;

is no more a weird cryptic construct than

   n++;

or

   while (*s)
     *d++ = *s++;

for that matter.

--
Andy Lester => andy@petdance.com => www.petdance.com => AIM:petdance




