P99

◆ P99_MEMZERO

#define P99_MEMZERO (   T,
  TA,
 
)    p00_memset((TA), (void const*)&P99_LVAL(const T), sizeof(T), N)

A type oriented replacement for memset with argument 0.

Initialize the object to which TA points with N copies of a default object of type T. Generally the idea is that TA is a pointer to an object of type T.

Warning
*TA must be large enough to hold the N copies, otherwise the behavior is undefined.
Remarks
argument 0 should correspond to a type that is not a VLA.

Definition at line 164 of file p99_new.h.