From: "Tony O'Bryan" Newsgroups: comp.os.msdos.djgpp Subject: Re: Alignment Date: Tue, 26 May 1998 18:22:27 +0000 Organization: Southwest Missouri State Universtiy Lines: 12 Message-ID: <356B0863.81307289@nic.smsu.edu> References: <3567B2FB DOT 6F90D101 AT mailexcite DOT com> NNTP-Posting-Host: marie.a48.smsu.edu Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Wai Teng wrote: > Can anyone please tell me if memory allocated by malloc or > __dpmi_allocate_memory is aligned? If so, are they aligned on 2bytes, > 4bytes, 8bytes or 16bytes boundary? The Linux man page says that the buffers returned by malloc() and calloc() are "suitably aligned for any kind of variable." I don't know about __dpmi_allocate_memory, though.