A
axr0284
Hi,
I would like to know what this code line does in this function
I am not sure if this group uses code tags so bear with me here.
I would like a description of what " *(int*)iAddr " means. I think
it's casting the int to a "pointer to an int" and then it's assigning
the memory location the pointer points to with the value of (iByte &
0xFF). Am I correct here? Thanks
Amish
I would like to know what this code line does in this function
Code:
void FlashDrvWriteByte(int iAddr, int iByte)
{
*(int*)iAddr = (iByte & 0xFF);
}
I am not sure if this group uses code tags so bear with me here.
I would like a description of what " *(int*)iAddr " means. I think
it's casting the int to a "pointer to an int" and then it's assigning
the memory location the pointer points to with the value of (iByte &
0xFF). Am I correct here? Thanks
Amish