A
almurph
Hi,
Can anyone help me interpret this line of code (I'm a C# man, my C is
a bit rusty):
memcpy((char*)A, (char*)A->SomeArray[MaxVal], sizeof(ARec));
I get the "A->SomeArray[MaxVal]" bit - its the rest that's throwing
me. I know that memcpy(A, B, n) copies B into A (more or less) but its
the "(char*) stuff that's confusing me.
Would appreciate any comments/suggestions/insight that you can give
me.
Thanks,
Al.
Can anyone help me interpret this line of code (I'm a C# man, my C is
a bit rusty):
memcpy((char*)A, (char*)A->SomeArray[MaxVal], sizeof(ARec));
I get the "A->SomeArray[MaxVal]" bit - its the rest that's throwing
me. I know that memcpy(A, B, n) copies B into A (more or less) but its
the "(char*) stuff that's confusing me.
Would appreciate any comments/suggestions/insight that you can give
me.
Thanks,
Al.