3 ms·
I don't think it is. It wouldn't make sense since memcpy is basically supposed to convert between arbitrary binary data.
by mehrdadn 8y ago
I don't think it is. It wouldn't make sense since memcpy is basically supposed to convert between arbitrary binary data.
- saagarjha 8y agoFrom a practical point of view, yes, but I would be very surprised if the C standard had any accommodation for memcpy being a way to leak the value of a structure's padding.