D
dotnetchic
I'm having some trouble interpreting some legacy code...here's a single
line of the kind of pointer arithmetic that baffles me. I need help
both interpreting and understanding the reasoning behind it. Can
someone help me?
*(ioStruct.FrntScrPtrn + uj *(*ioStruct.FrntScrPtrn_NumItemsY)+ui) =
tempChar;
can someone re-write this for me in terms I can understand? i.e., my
first attempt was this, but it's incorrect:
ioStruct.FrntScrPtrn[ uj * ioStruct.FrntScrPtrn_NumItemsY[ui] ] =
tempChar;
Also, is there a purpose for this form of pointer arithmetic? Is it
faster?
Many thanks,
sharon
line of the kind of pointer arithmetic that baffles me. I need help
both interpreting and understanding the reasoning behind it. Can
someone help me?
*(ioStruct.FrntScrPtrn + uj *(*ioStruct.FrntScrPtrn_NumItemsY)+ui) =
tempChar;
can someone re-write this for me in terms I can understand? i.e., my
first attempt was this, but it's incorrect:
ioStruct.FrntScrPtrn[ uj * ioStruct.FrntScrPtrn_NumItemsY[ui] ] =
tempChar;
Also, is there a purpose for this form of pointer arithmetic? Is it
faster?
Many thanks,
sharon