P99

◆ P99_FREALLOC

#define P99_FREALLOC (   P,
  T,
  F,
 
)    realloc(P, P99_FSIZEOF(T, F, N))

Reallocate an instance P of struct T such that it is able to hold N items in flexible struct member F.

No initialization of the instance is performed.

The behaviour is analogous to that of realloc. In particular, the object can be moved to a different location, and therefore the return value must always be checked.

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

Definition at line 474 of file p99_new.h.