Re: void * in ANSC



On Mon, 04 Feb 2008 22:21:04 +0000, Walter Roberson wrote:
In article <fo6th2$mls$2@xxxxxxxxxxxx>, Army1987 <army1987@xxxxxxxxx>
wrote:
Army1987 wrote:

(void)memcpy(foo, bar, 42) accesses 42 bytes.

84 bytes, I meant.

How do you arrive at that number? memcpy() does not define the behaviour
if the fields overlap.

So assuming the fields don't overlap, memcpy reads 42 bytes, and writes
42 different bytes, so accesses 84 bytes in total.
.