P99

◆ P99_FSIZEOF

#define P99_FSIZEOF (   T,
  F,
 
)    P99_MAXOF(sizeof(T), offsetof(T, F) + P99_SIZEOF(T, F[0]) * N)

Compute the size for an instance of struct T that is able to hold N items in flexible struct member F.

Warning
argument 2 may be evaluated multiple times
Remarks
argument 0 should correspond to a type that is not a VLA.
argument 1 maybe evaluated several times for its type but only once for its value

Definition at line 456 of file p99_new.h.