Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!uakari.primate.wisc.edu!dali.cs.montana.edu!milton!uw-beaver!ubc-cs!alberta!cpsc.ucalgary.ca!aycock From: aycock@cpsc.ucalgary.ca (aycock) Newsgroups: comp.sys.amiga.tech Subject: Re: FileInfoBlock Message-ID: Date: 10 Nov 90 04:12:32 GMT References: <15413@cbmvax.commodore.com> <26622.27392887@kuhub.cc.ukans.edu> Distribution: comp Organization: University of Calgary Lines: 23 In-Reply-To: markv@kuhub.cc.ukans.edu's message of 8 Nov 90 14:42:30 GMT Nntp-Posting-Host: rat Mark Gooderum (markv@kuhub.cc.ukans.edu) writes: | Or if you have SAS C 5.1 you can say: | | struct FileInfoBlock _aligned fib; | | and use &fib. The _aligned is nice because it eliminates the need for | lots of otherwise uneeded Alloc/Free code just so you can get longword | alignment. Or, if you don't have Lattice, or refuse to never ever ever use another of their compilers again, you could use: unsigned char space[sizeof(struct FileInfoBlock) + 4]; struct FileInfoBlock *fib; fib = (struct FileInfoBlock *) (((unsigned long)space+4)&~3); I agree, though, it's much nicer than using AllocMem() and FreeMem(). :ja -- //\|_||\| John D. Aycock aycock@cpsc.ucalgary.ca \/ \/| || | (403) 285-8727