Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Rule 18.1 and Rule 11.3 compatibility
#2
Should the second line of your example read:
Code:
uint8_t * ptr = (uint8_t *)&variable;
i.e. you are taking the address of variable? Otherwise, you are dereferencing a null pointer.
<t></t>


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)