core.stdc.stdlib.malloc & alignment

captaindet via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Jun 28 19:24:55 PDT 2016


is there an alignment guarantee for core.stdc.stdlib.malloc?

more specifically, using DMD and compiling for 32bit on windows, can i 
assume proper alignment for int or uint variables?

background: i like to re-use a (ubyte) buffer, sometimes it will store 
only bytes, sometimes it shall store uints.

thanks


More information about the Digitalmars-d-learn mailing list