On Sat, 12 May 2007, Andrew Makhorin wrote:

Hello,

I am wondering, if there is a way to determine the alignment boundary,
in bytes, i.e. the boundary suitable to allocate data of any type on a
particular platform. An example would be highly appreciated.

One approach is to use malloc() to allocate some memory and see what the alignment of the returned address is:

 "The malloc() function returns a pointer to a block of at least size
  bytes suitably aligned for any use."

Bob
======================================
Bob Friesenhahn
[EMAIL PROTECTED], http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/



_______________________________________________
Autoconf mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/autoconf

Reply via email to