Alignment of objects returned by malloc() and operator new()

Robert S. Grimes rsg at alum.mit.edu
Fri Dec 7 20:35:14 UTC 2007


Quick questions

1. What are the alignment characteristics of memory returned by malloc()?

2. What about operator new()?

I need to allocate memory for the Partition Manager, which wants it 
allocated on a 4-byte boundary - need I do anything special?

Thanks!
-Bob



More information about the users mailing list