www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/06/05/02:24:06

Date: Wed, 5 Jun 1996 09:15:11 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: latorre AT ix DOT netcom DOT com
Cc: djgpp AT delorie DOT com
Subject: Re: [?] aligning value returned by calloc/malloc
In-Reply-To: <31B35635.738@ix.netcom.com>
Message-Id: <Pine.SUN.3.91.960605091126.25305M-100000@is>
Mime-Version: 1.0

On Mon, 3 Jun 1996 latorre AT ix DOT netcom DOT com wrote:

> How do I align the value returned by calloc/malloc on a particular byte
> boundry ? For instance 64 or 128.

I think pointers returned by `malloc' are always aligned to 8 bytes, so 
it could be used to store even double and long long variables.  If I'm 
right, then why do you need to control alignment manually?

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019