Is there a memset alternative for more than one byte?

182 Views Asked by At

Is there a memset or memcpy operation to set a single int16, or int32 to an entire array?

Basically I have an integer array and I want to broadcast a single value to all of its elements. memset only supports setting a 1-byte char.

0

There are 0 best solutions below