Is there a reason we use

  memcpy( dest, src, sizeof(FOO) );

instead of

  *dest = *src;

The latter should be the exact same code, but be much less likely to be screwed up.

At the very least we should be using:

  memcpy( dest, src, sizeof(*dest) );

Of course, I'm only talking about when we're passing around structs. Clearly this won't work everywhere.

--
Andy Lester => [EMAIL PROTECTED] => www.petdance.com => AIM:petdance




Reply via email to