How to increment a pointer by n bytes
<p>Sometimes I need to increment a pointer by 8, sometimes by 4, and sometimes by any value. How can I do this operation safely so my code runs fine in Windows 10 and Unix? I have to do it this way because I am working with a block of memory that has 8-byte integers, 4-byte integers and n-byte data.</p>