P99

◆ P99_MEMSET

#define P99_MEMSET (   TA,
  SO,
 
)    p00_memset((TA), (void const*)&(SO), sizeof(SO), N)

A type oriented replacement for memset.

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

This similar to memset with the extra feature that SO may be of any type.

Warning
*TA must be large enough to hold the N copies, otherwise the behavior is undefined.
Remarks
argument 1 maybe evaluated several times for its type but only once for its value

Definition at line 151 of file p99_new.h.