Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. The incomplete array type must be the last element within the structure.
  2. There cannot be an array of structures that contain flexible array members.
  3. Structures that contain a flexible array member cannot be used as a member in the middle of another structure.

MEM33-C. Allocate and operate on structures containing a flexible array members dynamically describes how to allocate and copy structures containing flexible array members].

Noncompliant Code Example

...