ijk@houxt.UUCP (06/11/84)
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
markz@microsoft.UUCP (06/16/84)
"... back to assembler I go, since I can't figure out a way of forcing alignment in C..." There is a compiler switch -b that will cause all structures to be byte aligned.