Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: xref ARR39-C

...

It is acceptable to subtract or compare two member pointers within a single struct object, suitably cast because any object can be treated as an array of unsigned char. However, when doing so, remember to account for the effects of alignment and padding on the structure. See ARR39-C. Do not add or subtract a scaled integer to a pointer for more information.

Noncompliant Code Example

...