Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10 5/3/83; site houxt.UUCP Path: utzoo!watmath!clyde!burl!ulysses!mhuxl!houxm!hogpc!houxt!ijk From: ijk@houxt.UUCP Newsgroups: net.micro.pc Subject: Lattice C Structure Alignment Message-ID: <416@houxt.UUCP> Date: Mon, 11-Jun-84 15:24:19 EDT Article-I.D.: houxt.416 Posted: Mon Jun 11 15:24:19 1984 Date-Received: Tue, 12-Jun-84 00:58:03 EDT Organization: ATT Information Systems, Holmdel NJ Lines: 11 Recently, I've had considerable problems in getting some DOS function calls in working. These all involved the use of the FCB structure and its random record field at offset 33 from the beginningng. After much lack of success, I discovered that the compiler put this particular record at offset 34(!). I guess that's what I get for trusting a compiler - back to assembler I go, since I can't figure out a way of forcing alignment in C. (Yes Virginia, there are bona-fide instances where assembler is preferred - sob, groan, GASP....) Oh well, at least I'll know the ne|4time..... Ihor Kinal houxt!ijk